update broken references in router nat docs (#2784)

<!-- This change is generated by MagicModules. -->
/cc @chrisst
This commit is contained in:
The Magician 2019-01-02 17:32:59 -08:00 committed by Chris Stephens
parent b4a0e9652b
commit 75f54dce7c

View File

@ -19,21 +19,21 @@ A simple NAT configuration: enable NAT for all Subnetworks associated with
the Network associated with the given Router. the Network associated with the given Router.
```hcl ```hcl
resource "google_compute_network" "network" { resource "google_compute_network" "default" {
name = "my-network" name = "my-network"
} }
resource "google_compute_subnetwork" "subnetwork" { resource "google_compute_subnetwork" "default" {
name = "my-subnet" name = "my-subnet"
network = "${google_compute_network.network.self_link}" network = "${google_compute_network.default.self_link}"
ip_cidr_range = "10.0.0.0/16" ip_cidr_range = "10.0.0.0/16"
region = "us-central1" region = "us-central1"
} }
resource "google_compute_router" "router" { resource "google_compute_router" "router" {
name = "router" name = "router"
region = "${google_compute_subnetwork.foobar.region}" region = "${google_compute_subnetwork.default.region}"
network = "${google_compute_network.foobar.self_link}" network = "${google_compute_network.default.self_link}"
bgp { bgp {
asn = 64514 asn = 64514
} }
@ -52,21 +52,21 @@ A production-like configuration: enable NAT for one Subnetwork and use a list of
static external IP address. static external IP address.
```hcl ```hcl
resource "google_compute_network" "network" { resource "google_compute_network" "default" {
name = "my-network" name = "my-network"
} }
resource "google_compute_subnetwork" "subnetwork" { resource "google_compute_subnetwork" "default" {
name = "my-subnet" name = "my-subnet"
network = "${google_compute_network.network.self_link}" network = "${google_compute_network.default.self_link}"
ip_cidr_range = "10.0.0.0/16" ip_cidr_range = "10.0.0.0/16"
region = "us-central1" region = "us-central1"
} }
resource "google_compute_router" "router" { resource "google_compute_router" "router" {
name = "router" name = "router"
region = "${google_compute_subnetwork.foobar.region}" region = "${google_compute_subnetwork.default.region}"
network = "${google_compute_network.foobar.self_link}" network = "${google_compute_network.default.self_link}"
bgp { bgp {
asn = 64514 asn = 64514
} }