Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

Commit

Permalink
Merge pull request #53 from gruntwork-io/fix-vpc-nat-routing
Browse files Browse the repository at this point in the history
Fix VPC NAT Routing
  • Loading branch information
robmorgan authored Apr 2, 2020
2 parents 80f6f65 + 40b02b3 commit c52b7d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:

# Fail the build if the pre-commit hooks don't pass. Note: if you run pre-commit install locally, these hooks will
# execute automatically every time before you commit, ensuring the build never fails at this step!
- run: pip install pre-commit==1.11.2
- run: pip install pre-commit==1.11.2 cfgv==2.0.1
- run: pre-commit install
- run: pre-commit run --all-files

Expand Down
3 changes: 1 addition & 2 deletions modules/vpc-network/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ resource "google_compute_router_nat" "vpc_nat" {
source_subnetwork_ip_ranges_to_nat = "LIST_OF_SUBNETWORKS"

subnetwork {
name = google_compute_subnetwork.vpc_subnetwork_public.self_link
name = google_compute_subnetwork.vpc_subnetwork_private.self_link
source_ip_ranges_to_nat = ["ALL_IP_RANGES"]
}
}
Expand Down Expand Up @@ -120,4 +120,3 @@ module "network_firewall" {
public_subnetwork = google_compute_subnetwork.vpc_subnetwork_public.self_link
private_subnetwork = google_compute_subnetwork.vpc_subnetwork_private.self_link
}

0 comments on commit c52b7d2

Please sign in to comment.