mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-01 16:21:06 +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.
|
||||
|
||||
```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
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user