modules/gcve-service-networking/variables.tf (144 lines of code) (raw):

/** * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ variable "project_id" { description = "Project to create GCVE Service networking Resources" type = string } variable "region" { description = "The region to use" type = string } variable "create_network" { description = "If set to true, new VPC will be created" type = bool default = true } variable "network_name" { description = "The name of the network being created" type = string } variable "network_description" { description = "Description for the GCP Network" type = string default = "" } variable "auto_create_subnetworks" { description = "When set to true, the network is created in 'auto subnet mode' and it will create a subnet for each region automatically across the 10.128.0.0/9 address range. When set to false, the network is created in 'custom subnet mode' so the user can explicitly connect subnetwork resources." type = bool default = false } variable "routing_mode" { description = "The network routing mode (default 'GLOBAL')" type = string default = "GLOBAL" } variable "mtu" { description = "The network MTU (If set to 0, meaning MTU is unset - defaults to '1460'). Recommended values: 1460 (default for historic reasons), 1500 (Internet default), or 8896 (for Jumbo packets). Allowed are all values in the range 1300 to 8896, inclusively." type = number default = 0 } variable "delete_default_internet_gateway_routes" { description = "If set, ensure that all routes within the network specified whose names begin with 'default-route' and with a next hop of 'default-internet-gateway' are deleted" type = bool default = false } variable "subnets" { description = "The list of subnets being created" type = list(map(string)) default = [] } variable "secondary_ranges" { description = "Secondary ranges that will be used in some of the subnets" type = map(list(object({ range_name = string, ip_cidr_range = string }))) default = {} } variable "private_ip_allocation_details" { description = "Private IP Allocation details to Create Compute Global Address" type = map(object({ name = string, address = string, prefix_length = number })) } variable "primary_private_ip_alloc" { description = "Primary Private IP Allocation which can be used for GCVE PSA Connection" type = string } variable "service" { description = "Service value to use in google_service_networking_connection resource" type = string default = "servicenetworking.googleapis.com" } variable "peering" { description = "Peering value to use in google_compute_network_peering_routes_config resource" type = string default = "servicenetworking-googleapis-com" } variable "address_purpose" { description = "Purpose value to use in google_compute_global_address resource" type = string default = "VPC_PEERING" } variable "address_type" { description = "Address type value to use in google_compute_global_address resource" type = string default = "INTERNAL" } variable "create_gcve_network" { description = "Set to true to create google vmwareengine network" type = bool } variable "gcve_network_name" { description = "The ID of the VMware Engine Network" type = string } variable "gcve_network_location" { description = "The location where the VMwareEngineNetwork should reside" type = string } variable "gcve_network_type" { description = "VMware Engine network type" type = string default = "LEGACY" } variable "gcve_network_description" { description = "Description for the VMware Engine network" type = string default = "" } variable "gcve_connection_name" { description = "the GCVE Private Connection ID" type = string } variable "pc_location" { description = "The region to create the private connection" type = string } variable "pc_routing_mode" { description = "The routing mode of Private Connection" type = string default = "GLOBAL" } variable "pc_description" { description = "Description for the Private Connection" type = string default = "gcve_service_networking" } variable "pc_connection_type" { description = "Connection Type for GCVE Private Connection" type = string default = "PRIVATE_SERVICE_ACCESS" }