0

I am using deployment manager to deploy cloud_sql with private-ip, by default public IP is enabled for those deployment.

Is there a way to disable public IP using Deployment Manager ?

2 Answers2

0

Whether Public IP is enabled is controlled by the misleadingly named settings.ipConfiguration.ipv4Enabled property. If you set it to false, it should disable public IP connectivity.

Vadim
  • 4,996
  • 1
  • 26
  • 30
0

To disable public ip while deploying via deployment manager you can set the settings.ipConfiguration.ipv4Enabled property to false in your yaml file. To see all the properties available, read the Cloud SQL documentation here

If you have deployed with the public ip and now want to disable it, use the below command:

gcloud sql instances patch [INSTANCE_NAME] --no-assign-ip

To disable public ip using console or curl, please read the Google cloud documentation for disabling public ip

Omair
  • 481
  • 3
  • 6