diff --git a/mmv1/products/compute/Subnetwork.yaml b/mmv1/products/compute/Subnetwork.yaml index 7c69292e772d..42b2f4262f78 100644 --- a/mmv1/products/compute/Subnetwork.yaml +++ b/mmv1/products/compute/Subnetwork.yaml @@ -129,6 +129,8 @@ examples: vars: subnetwork_name: 'subnetwork-reserved-secondary-range' network_name: 'network-reserved-secondary-range' + primary_range_name: 'reserved-primary' + secondary_range_name: 'reserved-secondary' virtual_fields: - name: 'send_secondary_ip_range_if_empty' description: | diff --git a/mmv1/templates/terraform/examples/subnetwork_reserved_secondary_range.tf.tmpl b/mmv1/templates/terraform/examples/subnetwork_reserved_secondary_range.tf.tmpl index 612fb7dd0c4a..90b9a1195c32 100644 --- a/mmv1/templates/terraform/examples/subnetwork_reserved_secondary_range.tf.tmpl +++ b/mmv1/templates/terraform/examples/subnetwork_reserved_secondary_range.tf.tmpl @@ -19,7 +19,7 @@ resource "google_compute_network" "default" { resource "google_network_connectivity_internal_range" "reserved" { provider = google-beta - name = "reserved" + name = "{{index $.Vars "primary_range_name"}}" network = google_compute_network.default.id usage = "FOR_VPC" peering = "FOR_SELF" @@ -31,7 +31,7 @@ resource "google_network_connectivity_internal_range" "reserved" { resource "google_network_connectivity_internal_range" "reserved_secondary" { provider = google-beta - name = "reserved-secondary" + name = "{{index $.Vars "secondary_range_name"}}" network = google_compute_network.default.id usage = "FOR_VPC" peering = "FOR_SELF"