Skip to content

Commit

Permalink
update broken references in router nat docs (GoogleCloudPlatform#1136)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisst authored and modular-magician committed Jan 3, 2019
1 parent 900c113 commit d429415
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion build/terraform
2 changes: 1 addition & 1 deletion build/terraform-beta
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@ A simple NAT configuration: enable NAT for all Subnetworks associated with
the Network associated with the given Router.

```hcl
resource "google_compute_network" "network" {
resource "google_compute_network" "default" {
name = "my-network"
}
resource "google_compute_subnetwork" "subnetwork" {
resource "google_compute_subnetwork" "default" {
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"
region = "us-central1"
}
resource "google_compute_router" "router" {
name = "router"
region = "${google_compute_subnetwork.foobar.region}"
network = "${google_compute_network.foobar.self_link}"
region = "${google_compute_subnetwork.default.region}"
network = "${google_compute_network.default.self_link}"
bgp {
asn = 64514
}
Expand All @@ -52,21 +52,21 @@ A production-like configuration: enable NAT for one Subnetwork and use a list of
static external IP address.

```hcl
resource "google_compute_network" "network" {
resource "google_compute_network" "default" {
name = "my-network"
}
resource "google_compute_subnetwork" "subnetwork" {
resource "google_compute_subnetwork" "default" {
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"
region = "us-central1"
}
resource "google_compute_router" "router" {
name = "router"
region = "${google_compute_subnetwork.foobar.region}"
network = "${google_compute_network.foobar.self_link}"
region = "${google_compute_subnetwork.default.region}"
network = "${google_compute_network.default.self_link}"
bgp {
asn = 64514
}
Expand Down

0 comments on commit d429415

Please sign in to comment.