mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-05 17:52:38 +00:00
update broken references in router nat docs (#2784)
<!-- This change is generated by MagicModules. --> /cc @chrisst
This commit is contained in:
parent
b4a0e9652b
commit
75f54dce7c
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user