Policy: GCP > SQL > Instance > Public IP
Configure whether a GCP > SQL > Instance may have a public IP address.
If set to Enforce: Disabled, the public IP address is turned off, but only when the instance already has a private connection, either a private network or Private Service Connect. An instance with neither stays in alarm, because turning off its only address would leave it unreachable.
Note: Clients that connect to the public IP address, including the Cloud SQL Auth Proxy without private IP, lose access once the public IP is turned off.
Targets
This policy targets the following resource types:
Controls
Setting this policy configures this control:
Policy Specification
Schema Type | |
|---|---|
Default | |
Valid Values [YAML] |
|
Examples [YAML] |
|
Category
In Your Workspace
Developers
- tmod:@turbot/turbot#/control/categories/security
- tmod:@turbot/gcp-sql#/policy/types/instancePublicIp
- turbot graphql policy-type --id "tmod:@turbot/gcp-sql#/policy/types/instancePublicIp"
- turbot graphql policy-settings --filter "policyTypeId:tmod:@turbot/gcp-sql#/policy/types/instancePublicIp"
Get Policy TypeGet Policy Settings
Category URI
Policy Type URI
GraphQL
CLI