At work we’ve recently started to use Terraform to manage the cloud infrastructure of our clients. During my initial research on how to set up a Cloud SQL instance using Terraform, I stumbled upon the “Terraform Google Modules” organization (unaffiliated to Google). They provide several Terraform modules in order to easily create:
A Kubernetes Engine Cluster
A CloudSQL Instance
A CloudSQL HA Cluster (MySQL RR)
Cloud Functions
Repository Triggers
This will surely save me and my colleagues some work 🙂
To my surprise I was greeted with an abort signal (not an Exception!) when running this piece of code when trying to connect to a MySQL 5.7 Server on Google Cloud SQL:
Terminated due to signal: ABORT TRAP (6)
Thinking it was a problem with the used certificates I turned to the mysql binary to verify their contents:
💁♂️ Do note that in this case your connection is encrypted, but you’re not validation the server SSL certificate, and therefore cannot be guaranteed that you’re connecting to the correct server …
With all these set, your PHP code should be able to connect to the MySQL instance without being terminated prematurely …
Did this help you out? Like what you see? Thank me with a coffee.
I don't do this for profit but a small one-time donation would surely put a smile on my face. Thanks!