You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module"google_vpc_access_connector" {
source="./modules/google-beta/r/google_vpc_access_connector"# ip_cidr_range - (optional) is a type of stringip_cidr_range=null# machine_type - (optional) is a type of stringmachine_type=null# max_instances - (optional) is a type of numbermax_instances=null# max_throughput - (optional) is a type of numbermax_throughput=null# min_instances - (optional) is a type of numbermin_instances=null# min_throughput - (optional) is a type of numbermin_throughput=null# name - (required) is a type of stringname=null# network - (optional) is a type of stringnetwork=null# project - (optional) is a type of stringproject=null# region - (optional) is a type of stringregion=nullsubnet=[{
name =null
project_id =null
}]
timeouts=[{
create =null
delete =null
}]
}
variable"ip_cidr_range" {
description="(optional) - The range of internal addresses that follows RFC 4632 notation. Example: '10.132.0.0/28'."type=stringdefault=null
}
variable"machine_type" {
description="(optional) - Machine type of VM Instance underlying connector. Default is e2-micro"type=stringdefault=null
}
variable"max_instances" {
description="(optional) - Maximum value of instances in autoscaling group underlying the connector."type=numberdefault=null
}
variable"max_throughput" {
description="(optional) - Maximum throughput of the connector in Mbps, must be greater than 'min_throughput'. Default is 1000."type=numberdefault=null
}
variable"min_instances" {
description="(optional) - Minimum value of instances in autoscaling group underlying the connector."type=numberdefault=null
}
variable"min_throughput" {
description="(optional) - Minimum throughput of the connector in Mbps. Default and min is 200."type=numberdefault=null
}
variable"name" {
description="(required) - The name of the resource (Max 25 characters)."type=string
}
variable"network" {
description="(optional) - Name of the VPC network. Required if 'ip_cidr_range' is set."type=stringdefault=null
}
variable"project" {
description="(optional)"type=stringdefault=null
}
variable"region" {
description="(optional) - Region where the VPC Access connector resides. If it is not provided, the provider region is used."type=stringdefault=null
}
variable"subnet" {
description="nested block: NestingList, min items: 0, max items: 1"type=set(object(
{
name =string
project_id =string
}
))
default=[]
}
variable"timeouts" {
description="nested block: NestingSingle, min items: 0, max items: 0"type=set(object(
{
create =string
delete =string
}
))
default=[]
}
resource"google_vpc_access_connector""this" {
# ip_cidr_range - (optional) is a type of stringip_cidr_range=var.ip_cidr_range# machine_type - (optional) is a type of stringmachine_type=var.machine_type# max_instances - (optional) is a type of numbermax_instances=var.max_instances# max_throughput - (optional) is a type of numbermax_throughput=var.max_throughput# min_instances - (optional) is a type of numbermin_instances=var.min_instances# min_throughput - (optional) is a type of numbermin_throughput=var.min_throughput# name - (required) is a type of stringname=var.name# network - (optional) is a type of stringnetwork=var.network# project - (optional) is a type of stringproject=var.project# region - (optional) is a type of stringregion=var.regiondynamic"subnet" {
for_each=var.subnetcontent {
# name - (optional) is a type of stringname=subnet.value["name"]
# project_id - (optional) is a type of stringproject_id=subnet.value["project_id"]
}
}
dynamic"timeouts" {
for_each=var.timeoutscontent {
# create - (optional) is a type of stringcreate=timeouts.value["create"]
# delete - (optional) is a type of stringdelete=timeouts.value["delete"]
}
}
}