terraform/configs/configupgrade/testdata/valid/element-of-set/input/element-of-set.tf

8 lines
167 B
HCL

resource "test_instance" "a" {
subnet_ids = ["boop"] # this attribute takes a set of strings
}
output "b" {
value = "${element(test_instance.a.subnet_ids, 0)}"
}