Terraform splat expression
- https://www.terraform.io/docs/language/expressions/splat.html provides a more concise way to express a common operation that could otherwise be performed with a for expression.
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]
tolist
- Error: Error in function call: "list" function was deprecated in Terraform v0.12
See also[edit]
Advertising: