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

8 lines
170 B
HCL

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