title: How to get an object from a list of objects in Terraform?
body: <p>I have the following list of objects variable:</p>
  
  <pre><code>variable "objects" {
    type = "list"
    description = "list of objects
    default = [
        {
          id = "name1"
          attribute = "a"
        },
        {
          id = "name2"
          attribute = "a,b"
        },
        {
          id = "name3"
          attribute = "d"
        }
    ]
  }
  </code></pre>
  
  <p>How do I get element with id = "name2" ?</p>