title: Terraform multiple blocks inside dynamic block?
body: <p>I'm trying to create a module for the aws_wafv2_web_acl resource and I can't figure out how to add multiple 'excluded_rule' blocks inside a dynamic block.  Is this possible?  Here is the resource:</p>
  <pre><code>resource &quot;aws_wafv2_web_acl&quot; &quot;web-acl&quot; {
  
  
    name        = var.name
    description = &quot;&quot;
    scope       = &quot;REGIONAL&quot;
  
    default_action {
      allow {}
    }
  
    dynamic &quot;rule&quot; {
      for_each = var.rules
      content {
          name     = rule.value[&quot;name&quot;]
          priority = rule.value[&quot;priority&quot;]
  
          override_action {
            count {}
          }
  
          statement {
            managed_rule_group_statement {
              name        = rule.value[&quot;name&quot;]
              vendor_name = &quot;AWS&quot;
  
              excluded_rule {              
                name = &quot;excluded rule&quot;
              }
  
            }
          }
  
          visibility_config {
            cloudwatch_metrics_enabled = false
            sampled_requests_enabled   = false
            metric_name                = rule.value[&quot;name&quot;]
  
          }
      }
    }
    visibility_config {
        cloudwatch_metrics_enabled = false
        sampled_requests_enabled   = false
        metric_name                = &quot;webaclmetric&quot;
    }
  }
  </code></pre>
  <p>And here are the variables being passed:</p>
  <pre><code>  name = &quot;test&quot;
    rules = [
      {&quot;name&quot;: &quot;AWSManagedRulesLinuxRuleSet&quot;, &quot;priority&quot;: 0, &quot;exclusions&quot;: &quot;LFI_QUERYARGUMENTS,LFI_URIPATH&quot;},
      {&quot;name&quot;: &quot;AWSManagedRulesWindowsRuleSet&quot;, &quot;priority&quot;: 1, &quot;exclusions&quot;: &quot;PowerShellCommands_Set1_QUERYARGUMENTS&quot;}
    ]
  </code></pre>