How to enable private IP for Cloud SQL¶
This guide describes how to enable private IP for Cloud SQL instance in existing projects created using the gcp-deploy-boilerplate.
New projects created using the boilerplate will have private IP enabled by default.
Info
This guide is an addendum to the main guide on Update existing project using Copier.
When following the Update existing project using Copier
, when running the copier update command, you will need to explicitly add the database_private_network_only variable to true.
copier update --defaults --trust -d database_private_network_only=true
This will update the Terraform code to enable private IP for Cloud SQL instances and the required plumbing for the webapp.