mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-05 17:52:38 +00:00
Fix invalid website example code: r/compute_router_nat.html (#2717)
This commit is contained in:
parent
96a83f11cf
commit
aaf55a5455
|
@ -74,7 +74,7 @@ resource "google_compute_router" "router" {
|
||||||
|
|
||||||
resource "google_compute_address" "address" {
|
resource "google_compute_address" "address" {
|
||||||
count = 2
|
count = 2
|
||||||
name = "nat-external-address-${var.count}"
|
name = "nat-external-address-${count.index}"
|
||||||
region = "us-central1"
|
region = "us-central1"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@ resource "google_compute_router_nat" "advanced-nat" {
|
||||||
router = "${google_compute_router.router.name}"
|
router = "${google_compute_router.router.name}"
|
||||||
region = "us-central1"
|
region = "us-central1"
|
||||||
nat_ip_allocate_option = "MANUAL_ONLY"
|
nat_ip_allocate_option = "MANUAL_ONLY"
|
||||||
nat_ips = ["${google_compute_address.*.address.self_link}"]
|
nat_ips = ["${google_compute_address.address.*.self_link}"]
|
||||||
source_subnetwork_ip_ranges_to_nat = "LIST_OF_SUBNETWORKS"
|
source_subnetwork_ip_ranges_to_nat = "LIST_OF_SUBNETWORKS"
|
||||||
subnetwork {
|
subnetwork {
|
||||||
name = "${google_compute_subnetwork.subnetwork.self_link}"
|
name = "${google_compute_subnetwork.subnetwork.self_link}"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user