Hello terraform newbie here. I have a map as such:
variable "region_list" {
type = list(object({
region = string
azs = list(string)
}))
default = [
{
region = "us-east-1"
azs = ["a", "b"]
},
{
region = "us-west-2"
azs = ["a", "b"]
},
{
region = "ap-southeast-1"
azs = ["a", "b"]
},
{
region = "ap-northeast-1"
azs = ["a", "c"]
},
{
region = "eu-central-1"
azs = ["a", "b"]
},
{
region = "eu-west-1"
azs = ["a", "b"]
}
]
}
What syntax do i use in the locals block to create a new list of availability zones as such if possible:
new_az_list = ["us-east1a", "us-east1b", "us-west-2a", "us-west-2b", "ap-southeast-1a","ap-southeast-1b","ap-northeast-1a","ap-northeast-1c", "eu-central-1a", "eu-central-1b", "eu-west-1a", "eu-west-1b"]