terraform/website/docs
Martin Atkins f47c4efb1b website: Dynamic blocks can for_each any collection type
We previously added a hint to both resource for_each and dynamic blocks
about using the "flatten" and "setproduct" situations to construct
suitable collections to repeat over.

However, we used the same text in both places which ended up stating that
dynamic blocks can only accept map or set values, which is a constraint
that applies to resource for_each (because we need to assign a unique
identifier to each instance) and not to dynamic blocks (which don't have
any uniqueness enforced by Terraform Core itself).

To remove that contradiction with the text above which talks about what
is valid here, I've just generalized this to say "collection", because
the primary point of this paragraph is the "one element per desired nested
block" part, not specifically what sort of collections are permitted in
this location. (Text further up describes the supported types.)
2021-03-30 09:43:33 -07:00
..
cli Merge pull request #28164 from hashicorp/rln-add-resource-targeting-tutorial-callout 2021-03-29 09:12:30 -05:00
configuration website: Move hidden attr-as-blocks page into new URL structure 2021-01-22 12:22:21 -08:00
configuration-0-11 website: CLI: Update links to moved docs pages 2021-01-22 12:22:21 -08:00
internals Accept TF_LOG=json to enable TRACE logs in JSON format 2021-03-16 14:59:15 -07:00
language website: Dynamic blocks can for_each any collection type 2021-03-30 09:43:33 -07:00
providers website: Remove links to legacy provider docs for GitHub, ksyun 2021-01-22 12:51:35 -08:00