So it lasted a short 36 hours. TL;DR at the bottom of this post. A feature phone is a non-smart phone (in case you were wondering). I bought this phone after searching for a long time since it’s no longer sold in Australia and eventually found someone on gumtree happy to ship it over to me from the Eastern States.
Introduction Cloud functions are the quickest and easiest way to get your lightweight, single-purpose code in the cloud and there are a number of ways to deploy your functions on Google Cloud. One of my favourites is using the gcloud command-line tool. gcloud functions deploy HelloWorld --runtime go116 --trigger-http --allow-unauthenticated Running this does a lot of magical things for you behind the scenes which really harness the power of the public cloud in a way that really releases the developer of having to think too much about all the inner workings of getting their code out into the world.
The problem For some time, the recommended approach to doing continuous deployment on Google Cloud has been to leverage the cloudbuild service, and just jam everything you have into it. Your builds, deploys, tests, etc. Everything. This might be ok, in some very limited situations, but rarely works well when you scale.
I came across a problem over the past few weeks regarding password rotation for Cloud SQL. Whilst automated provisions exist for SSL/TLS certificates as well as being able to connect with the Cloud SQL proxy the ability to rotate passwords is not a feature that’s offered by GCP. After some thought, I came up with a hacky(?