Here is the command for provisioning the cheapest database on Google Cloud SQL. There were a couple of pitfalls as I’ll explain.
Notes:
By default you may be instructed in the code labs to run
You can change the postgres engine version to something modern like POSTGRES_16. The versions are listed here. As of this writing postgresql 16.3 is the default version.
When you run
you get the error
You can bypass this by specifying a lower tier for edition
In the pricing calculator you can get the cost of the database down to $10.60 per month. I did this by choosing a shared vcpu database
and lowering the disk size to 16gb.
Delete your database to avoid being billed
If you need help solving your business problems with
software read how to hire me.