Difference between revisions of "Terraform splat expression"

From wikieduonline
Jump to navigation Jump to search
 
(One intermediate revision by one other user not shown)
Line 22: Line 22:
 
== See also ==
 
== See also ==
 
* {{Terraform functions}}
 
* {{Terraform functions}}
* {{Terraform}}
+
* {{Terraform expresions}}
  
 
[[Category:Terraform]]
 
[[Category:Terraform]]

Latest revision as of 09:27, 23 February 2023


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[edit]

See also[edit]

Advertising: