This finally fixes the output coming from the vpc module so that it returns a full list of subnets. Now they can be referenced just like the redis module is using in this commit.
9 lines
201 B
HCL
9 lines
201 B
HCL
output "subnets" {
|
|
value = azurerm_subnet.subnet["private"].id #FIXED: this is now legacy, use subnet_list
|
|
}
|
|
|
|
output "subnet_list" {
|
|
value = {
|
|
for k, id in azurerm_subnet.subnet : k => id
|
|
}
|
|
} |