Fixed error with VPC connector. Count was referring to resource attributes that weren't known until after the configuration was applied

This commit is contained in:
apichick
2021-11-17 17:24:24 +01:00
parent fc7a7228d5
commit da0838d55a
3 changed files with 24 additions and 17 deletions

View File

@@ -131,15 +131,22 @@ variable "trigger_config" {
default = null
}
variable "vpc_connector_config" {
description = "VPC connector configuration. Set `create_config` attributes to trigger creation."
variable "vpc_connector" {
description = "VPC connector configuration. Set create to 'true' if a new connector needs to be created"
type = object({
egress_settings = string
create = bool
name = string
create_config = object({
ip_cidr_range = string
network = string
})
egress_settings = string
})
default = null
}
variable "vpc_connector_config" {
description = "VPC connector network configuration. Must be provided if new VPC connector is being created"
type = object({
ip_cidr_range = string
network = string
})
default = null
}