diff --git a/mmv1/products/networkconnectivity/Spoke.yaml b/mmv1/products/networkconnectivity/Spoke.yaml index 326f2c5782e2..7c66f43ef182 100644 --- a/mmv1/products/networkconnectivity/Spoke.yaml +++ b/mmv1/products/networkconnectivity/Spoke.yaml @@ -100,6 +100,12 @@ examples: spoke_name: "vpc-spoke" auto_accept_project_1_name: "foo" auto_accept_project_2_name: "bar" + - name: 'network_connectivity_spoke_linked_vpc_network_ipv6_support' + primary_resource_id: 'primary' + vars: + network_name: 'net' + hub_name: 'hub1' + spoke_name: 'spoke1-ipv6' parameters: - name: 'location' type: String diff --git a/mmv1/templates/terraform/examples/network_connectivity_spoke_linked_vpc_network_ipv6_support.tf.tmpl b/mmv1/templates/terraform/examples/network_connectivity_spoke_linked_vpc_network_ipv6_support.tf.tmpl new file mode 100644 index 000000000000..786c10ea96c9 --- /dev/null +++ b/mmv1/templates/terraform/examples/network_connectivity_spoke_linked_vpc_network_ipv6_support.tf.tmpl @@ -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 + } +} \ No newline at end of file