Skip to content

Commit

Permalink
Merge pull request #858 from yeoldegrove/gcp_fix_existing_subnet
Browse files Browse the repository at this point in the history
gcp: use local subnet variable to use existing subnet
  • Loading branch information
yeoldegrove authored May 25, 2022
2 parents 9c51485 + c2e5420 commit e05fc53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gcp/infrastructure.tf
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ resource "google_compute_router_nat" "nat" {

source_subnetwork_ip_ranges_to_nat = "LIST_OF_SUBNETWORKS"
subnetwork {
name = google_compute_subnetwork.ha_subnet.*.self_link[0]
name = local.subnet_name
source_ip_ranges_to_nat = ["ALL_IP_RANGES"]
}

Expand Down

0 comments on commit e05fc53

Please sign in to comment.