fixed variable name
This commit is contained in:
@@ -33,7 +33,7 @@ module "gcve-pc" {
|
||||
transit-conn1 = {
|
||||
name = "transit-conn1",
|
||||
network_self_link = "projects/test-prj-elia-01/global/networks/default",
|
||||
psa_peering = "servicenetworking-googleapis-com"
|
||||
peering_name = "servicenetworking-googleapis-com"
|
||||
type = "PRIVATE_SERVICE_ACCESS",
|
||||
routing_mode = "REGIONAL"
|
||||
}
|
||||
@@ -61,7 +61,7 @@ module "gcve-pc" {
|
||||
transit-conn1 = {
|
||||
name = "transit-conn1",
|
||||
network_self_link = "projects/test-prj-elia-01/global/networks/default",
|
||||
psa_peering = "servicenetworking-googleapis-com"
|
||||
peering_name = "servicenetworking-googleapis-com"
|
||||
type = "PRIVATE_SERVICE_ACCESS",
|
||||
routing_mode = "REGIONAL"
|
||||
}
|
||||
@@ -80,7 +80,7 @@ module "gcve-pc" {
|
||||
| [zone](variables.tf#L91) | Private cloud zone. | <code>string</code> | ✓ | |
|
||||
| [description](variables.tf#L17) | Private cloud description. | <code>string</code> | | <code>"Terraform-managed."</code> |
|
||||
| [management_cluster_config](variables.tf#L28) | Management cluster configuration. | <code title="object({ node_type_id = string node_count = number, custom_core_count = number })">object({…})</code> | | <code title="{ node_type_id = "standard-72", node_count = 3, custom_core_count = null }">{…}</code> |
|
||||
| [private_connections](variables.tf#L47) | VMWare private connections configuration. It is used to create the gcloud command printed as output. | <code title="map(object({ name = string network_self_link = string psa_peering = string description = optional(string, "Terraform-managed.") type = optional(string, "REGIONAL") routing_mode = optional(string, "PRIVATE_SERVICE_ACCESS") }))">map(object({…}))</code> | | <code>{}</code> |
|
||||
| [private_connections](variables.tf#L47) | VMWare private connections configuration. It is used to create the gcloud command printed as output. | <code title="map(object({ name = string network_self_link = string peering_name = string description = optional(string, "Terraform-managed.") type = optional(string, "REGIONAL") routing_mode = optional(string, "PRIVATE_SERVICE_ACCESS") }))">map(object({…}))</code> | | <code>{}</code> |
|
||||
| [vmw_network_create](variables.tf#L79) | Create the VMware Engine network. When set to false, it uses a data source to reference an existing VMware Engine network. | <code>bool</code> | | <code>true</code> |
|
||||
| [vmw_network_description](variables.tf#L85) | VMware Engine network description. | <code>string</code> | | <code>"Terraform-managed."</code> |
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ data "google_vmwareengine_network" "private-cloud-network" {
|
||||
|
||||
data "google_compute_network_peering" "psa_peering" {
|
||||
for_each = var.private_connections
|
||||
name = each.value.psa_peering
|
||||
name = each.value.peering_name
|
||||
network = each.value.network_self_link
|
||||
}
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ variable "private_connections" {
|
||||
type = map(object({
|
||||
name = string
|
||||
network_self_link = string
|
||||
psa_peering = string
|
||||
peering_name = string
|
||||
description = optional(string, "Terraform-managed.")
|
||||
type = optional(string, "REGIONAL")
|
||||
routing_mode = optional(string, "PRIVATE_SERVICE_ACCESS")
|
||||
|
||||
Reference in New Issue
Block a user