title: How to copy-past block into content of dynamic block
body: <p>For a list</p>
  <pre><code>locals{
      x = [ {  yyy = { a=1 } }, {  yyy = { b=2 }  }   ]
  }
  </code></pre>
  <p>I want to &quot;copy-past&quot; block yyy into content{} section of a dynamic block</p>
  <pre><code>   dynamic &quot;test&quot; {
        for_each = local.x
        content {
           zzz {x.yyy}
        }
     }
  </code></pre>
  <p>So the result should be</p>
  <pre><code>test{
    zzz {a=1}
  }
  
  test{
    zzz {b=2}
  }
  </code></pre>
  <p>Is it possible without manually coping each field:</p>
  <pre><code>  content {
       zzz {
          a=ifnotnull(x.yyy.a)  
          b=ifnotnull(x.yyy.b)  
       }
    }
  </code></pre>