-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include Export Ranges IPv6 Support (#12809)
- Loading branch information
1 parent
8e2d6d2
commit d77614b
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...tes/terraform/examples/network_connectivity_spoke_linked_vpc_network_ipv6_support.tf.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
resource "google_compute_network" "network" { | ||
name = "{{index $.Vars "network_name"}}" | ||
auto_create_subnetworks = false | ||
} | ||
|
||
resource "google_network_connectivity_hub" "basic_hub" { | ||
name = "{{index $.Vars "hub_name"}}" | ||
description = "A sample hub" | ||
labels = { | ||
label-two = "value-one" | ||
} | ||
} | ||
|
||
resource "google_network_connectivity_spoke" "{{$.PrimaryResourceId}}" { | ||
name = "{{index $.Vars "spoke_name"}}" | ||
location = "global" | ||
description = "A sample spoke with a linked VPC that include export ranges of all IPv6" | ||
labels = { | ||
label-one = "value-one" | ||
} | ||
hub = google_network_connectivity_hub.basic_hub.id | ||
linked_vpc_network { | ||
include_export_ranges = [ | ||
"ALL_IPV6_RANGES", | ||
"ALL_PRIVATE_IPV4_RANGES" | ||
] | ||
uri = google_compute_network.network.self_link | ||
} | ||
} |