Greetings,
I have this
variable "druid_cluster" {
description = "Druid cluster"
type = map(map(object({
instance_type = string
private_ip = string
root_block_device = optional(list(map(object({
encrypted = bool
volume_type = string
volume_size = number
tags = list(string)
}))), [{
encrypted = true
volume_type = "gp2"
volume_size = 512
tags = { some = "tag"}
}])
})))
default = {}
}
I’m trying to get it work. Getting random errors like
This default value is not compatible with the attribute's type constraint: element 0: element "encrypted": object required.
or
This default value is not compatible with the attribute's type constraint: element 0: element "tags": attributes "encrypted", "tags", "volume_size", and "volume_type" are required.
The format of root_block_device
is the following
root_block_device = [
{
encrypted = true
volume_type = "gp3"
throughput = 200
volume_size = 50
tags = {
Name = "my-root-block"
}
},
]
I’m just trying implement defaults for root_block_device