Skip to content

Commit

Permalink
update broken references in router nat docs (#2784)
Browse files Browse the repository at this point in the history
<!-- This change is generated by MagicModules. -->
/cc @chrisst
  • Loading branch information
modular-magician authored and chrisst committed Jan 3, 2019
1 parent b4a0e96 commit 75f54dc
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions website/docs/r/compute_router_nat.html.markdown
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 75f54dc

Please sign in to comment.