我有以下对象变量列表:
variable "objects" {
type = "list"
description = "list of objects
default = [
{
id = "name1"
attribute = "a"
},
{
id = "name2"
attribute = "a,b"
},
{
id = "name3"
attribute = "d"
}
]
}
Run Code Online (Sandbox Code Playgroud)
如何获取id =“ name2”的元素?
terraform ×1