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

Fix VPC NAT Routing #53

Merged
merged 2 commits into from
Apr 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
}