Terraform splat expression

From wikieduonline
Revision as of 09:27, 23 February 2023 by Brave (talk | contribs) (→‎See also)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


https://www.hashicorp.com/blog/hashicorp-terraform-0-12-preview-for-and-for-each

resource "aws_s3_bucket" "myexample" {
  # ...

  dynamic "website" {
    for_each = var.mywebsitevar[*]
    content {
      index_document = website.value.index_document
      error_document = website.value.error_document
    }
  }
}


Related terms

See also

Advertising: