Skip to content

Commit c31f593

Browse files
authored
chore(docs): Prepare sample for inclusion in cloud docs (#20)
1 parent ffc88e9 commit c31f593

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

examples/simple/main.tf

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,23 @@ provider "google" {
1818
version = "~> 3.0"
1919
}
2020

21+
# [START cloudrouter_create]
2122
module "cloud_router" {
22-
source = "../../"
23+
source = "terraform-google-modules/cloud-router/google"
24+
version = "~> 0.4"
2325

24-
name = "test-router"
26+
name = "my-router"
27+
region = "us-central1"
28+
29+
bgp = {
30+
# The private ASN (64512 - 65534, 4200000000 - 4294967294) can be any private ASN
31+
# not already used as a peer ASN in the same region and network.
32+
asn = "65001"
33+
}
34+
35+
# project = "my-project-id"
2536
project = var.project
37+
# network = "my-network"
2638
network = var.network
27-
region = "us-central1"
2839
}
40+
# [END cloudrouter_create]

0 commit comments

Comments
 (0)