Remediation
From Google Cloud Console
- Go to the Cloud SQL Instances page in the Google Cloud Console: https://console.cloud.google.com/sql/instances
- Click the instance name to open its Instance details page.
- Select the
Connectionstab. - Deselect the
Public IPcheckbox. - Click
Saveto update the instance.
From Google Cloud CLI
-
For every instance remove its public IP and assign a private IP instead:
gcloud sql instances patch <INSTANCE_NAME> --network=<VPC_NETWORK_NAME> --no-assign-ip -
Confirm the changes using the following command:
gcloud sql instances describe <INSTANCE_NAME>