github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/avd_docs/google/sql/AVD-GCP-0017/Terraform.md (about) 1 2 Remove public access from database instances 3 4 ```hcl 5 resource "google_sql_database_instance" "postgres" { 6 name = "postgres-instance-a" 7 database_version = "POSTGRES_11" 8 9 settings { 10 tier = "db-f1-micro" 11 12 ip_configuration { 13 ipv4_enabled = false 14 authorized_networks { 15 value = "10.0.0.1/24" 16 name = "internal" 17 } 18 } 19 } 20 } 21 22 ``` 23 24 #### Remediation Links 25 - https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/sql_database_instance 26