Merge pull request #28243 from hashicorp/doc-dynamic-blocks-foreach

website: Dynamic blocks can for_each any collection type
This commit is contained in:
Alisdair McDiarmid 2021-03-31 09:48:59 -04:00 committed by GitHub
commit 788c57a7c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,7 @@ to generate meta-argument blocks such as `lifecycle` and `provisioner`
blocks, since Terraform must process these before it is safe to evaluate blocks, since Terraform must process these before it is safe to evaluate
expressions. expressions.
The `for_each` value must be a map or set with one element per desired The `for_each` value must be a collection with one element per desired
nested block. If you need to declare resource instances based on a nested nested block. If you need to declare resource instances based on a nested
data structure or combinations of elements from multiple data structures you data structure or combinations of elements from multiple data structures you
can use Terraform expressions and functions to derive a suitable value. can use Terraform expressions and functions to derive a suitable value.