title: Terraform list of objects default values
body: <p>I'm getting an error when I try to set default values for an object inside a list:</p>
  <pre><code>variable &quot;routes&quot; {
    type = list(object({
      destination_cidr_block = string
      blackhole = bool})
      default = {
        blackhole = &quot;false&quot;
        destination_cidr_block = &quot;&quot;
      })
    description = &quot;a list of objects containing the cidr blocks of the dest and whether the cidr is a blackhole or not.&quot;
    default = null
  }
  </code></pre>
  <p>When I run this, I get the below error:</p>
  <pre><code>Error: Missing argument separator
  
    on variables.tf line 21, in variable &quot;routes&quot;:
    18:   type = list(object({
    19:     destination_cidr_block = string
    20:     blackhole = bool})
    21:     default = {
  
  A comma is required to separate each function argument from the next.
  </code></pre>
  <p>Line 21 &quot;default&quot; is underlined in the error.</p>
  <p>Setting defaults in this way works fine when it's just an object by itself.  I don't know why it complains when the variable is a list of objects.</p>