Difference between revisions of "Terraform splat expression"
Jump to navigation
Jump to search
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | * https://www.terraform.io/docs/language/expressions/splat.html | + | * 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. |
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.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: