Skip to content

Commit

Permalink
add deletion_policy in google_service_networking_connection
Browse files Browse the repository at this point in the history
  • Loading branch information
jarpat committed Jan 19, 2024
1 parent aaeb7f0 commit d55018d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ resource "google_service_networking_connection" "private_vpc_connection" {
network = module.vpc.network_name
service = "servicenetworking.googleapis.com"
reserved_peering_ranges = [google_compute_global_address.private_ip_address[0].name]

# required as of hashicorp/google v5.12.0 when using google_service_networking_connection in
# conjunction with CloudSQL instances in order to cleanly delete resources
# https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/service_networking_connection
deletion_policy = "ABANDON"
}

resource "google_compute_firewall" "nfs_vm_cluster_firewall" {
Expand Down

0 comments on commit d55018d

Please sign in to comment.