fixed typo

This commit is contained in:
eliamaldini 2023-08-17 12:05:44 +02:00
parent 8e9d544be6
commit 0e2ee8bceb
3 changed files with 7 additions and 8 deletions

View File

@ -2,12 +2,11 @@
This module implements the creation and management of a Google Cloud VMWare Engine Private Cloud with its management cluster. If configured, it also creates the VMWare engine network or it can work with an existing one. The creation of the private connection with the user VPC requires the execution of the [Google SDK command](https://cloud.google.com/sdk/gcloud/reference/vmware/private-connections/create#--routing-mode) the module provides as an output.
To undersatnd the limits and to propertly configure the vSphere/vSAN subnets CIDR range please refer to the [GCVE public documetation](https://cloud.google.com/vmware-engine/docs/quickstart-networking-requirements).
Be aware that the deployment of this module might require up to 2 hours depending on the selected private cloud target zone.
## TOC
<!-- BEGIN TOC -->
- [TOC](#toc)
- [Limitations](#limitations)
- [Basic Private Cloud Creation](#basic-private-cloud-creation)
- [Private Cloud Creation with custom nodes and cores count](#private-cloud-creation-with-custom-nodes-and-cores-count)
@ -34,7 +33,7 @@ module "gcve-pc" {
transit-conn1 = {
name = "transit-conn1",
network_self_link = "projects/test-prj-elia-01/global/networks/default",
peering = "servicenetworking-googleapis-com"
peering_name = "servicenetworking-googleapis-com"
type = "PRIVATE_SERVICE_ACCESS",
routing_mode = "REGIONAL"
}
@ -62,7 +61,7 @@ module "gcve-pc" {
transit-conn1 = {
name = "transit-conn1",
network_self_link = "projects/test-prj-elia-01/global/networks/default",
peering = "servicenetworking-googleapis-com"
peering_name = "servicenetworking-googleapis-com"
type = "PRIVATE_SERVICE_ACCESS",
routing_mode = "REGIONAL"
}
@ -81,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>&#34;Terraform-managed.&#34;</code> |
| [management_cluster_config](variables.tf#L28) | Management cluster configuration. | <code title="object&#40;&#123;&#10; node_type_id &#61; string&#10; node_count &#61; number,&#10; custom_core_count &#61; number&#10;&#125;&#41;">object&#40;&#123;&#8230;&#125;&#41;</code> | | <code title="&#123;&#10; node_type_id &#61; &#34;standard-72&#34;,&#10; node_count &#61; 3,&#10; custom_core_count &#61; null&#10;&#125;">&#123;&#8230;&#125;</code> |
| [private_connections](variables.tf#L47) | VMWare private connections configuration. It is used to create the gcloud command printed as output. | <code title="map&#40;object&#40;&#123;&#10; name &#61; string&#10; network_self_link &#61; string&#10; peering &#61; string&#10; description &#61; optional&#40;string, &#34;Terraform-managed.&#34;&#41;&#10; type &#61; optional&#40;string, &#34;REGIONAL&#34;&#41;&#10; routing_mode &#61; optional&#40;string, &#34;PRIVATE_SERVICE_ACCESS&#34;&#41;&#10;&#125;&#41;&#41;">map&#40;object&#40;&#123;&#8230;&#125;&#41;&#41;</code> | | <code>&#123;&#125;</code> |
| [private_connections](variables.tf#L47) | VMWare private connections configuration. It is used to create the gcloud command printed as output. | <code title="map&#40;object&#40;&#123;&#10; name &#61; string&#10; network_self_link &#61; string&#10; peering_name &#61; string&#10; description &#61; optional&#40;string, &#34;Terraform-managed.&#34;&#41;&#10; type &#61; optional&#40;string, &#34;REGIONAL&#34;&#41;&#10; routing_mode &#61; optional&#40;string, &#34;PRIVATE_SERVICE_ACCESS&#34;&#41;&#10;&#125;&#41;&#41;">map&#40;object&#40;&#123;&#8230;&#125;&#41;&#41;</code> | | <code>&#123;&#125;</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>&#34;Terraform-managed.&#34;</code> |

View File

@ -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.peering
name = each.value.peering_name
network = each.value.network_self_link
}

View File

@ -49,7 +49,7 @@ variable "private_connections" {
type = map(object({
name = string
network_self_link = string
peering = string
peering_name = string
description = optional(string, "Terraform-managed.")
type = optional(string, "REGIONAL")
routing_mode = optional(string, "PRIVATE_SERVICE_ACCESS")