Terraform dynamic blocks and list of objects

Hi All,
actually we configure on an azure storage account resource a list of CORS config via dynamic block and a K/V used as variable as reported:

    dynamic "cors_rule" {
      for_each = var.sa_cors_domains_list
      content {
        allowed_origins    = ["${cors_rule.value}"]
        allowed_methods    = var.cdn_cors_methods_list
        allowed_headers    = var.cdn_cors_headers_list
        exposed_headers    = [""]
        max_age_in_seconds = 0
      }
    }

We would add some information to the cors domains and switch from K/V to a list of objects. I s it possibile to use the list of objects into dynamic blocks?

Thanks,
Marcello

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.