terraform/website/docs/language
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
..
data-sources Add crosslink to new Learn tutorial 2021-02-04 13:43:03 -06:00
expressions website: Dynamic blocks can for_each any collection type 2021-03-30 09:43:33 -07:00
files website: Language: Update links to moved pages 2021-01-22 12:22:21 -08:00
functions lang/funcs: "sensitive" and "nonsensitive" functions 2021-03-16 16:26:22 -07:00
meta-arguments Update documentation for provider_sensitive_attrs experiment 2021-03-16 13:31:43 -04:00
modules Fix Kitchen-Terraform language in test experiment 2021-02-25 14:12:00 -08:00
providers Update website/docs/language/providers/configuration.html.md 2021-02-12 14:57:51 -05:00
resources Document `inline` & `on_failure` behaviour 2021-02-19 17:56:48 +00:00
settings backend/azurerm: Bug fixes and updated dependencies #28181 2021-03-26 14:07:56 -07:00
state Fix broken link error 2021-03-10 15:38:22 -06:00
syntax docs: Update link to HCL native syntax spec 2021-03-10 17:47:21 +01:00
values Remove deprecation on undeclared variable, docs, and summary adjustment (#27795) 2021-02-18 11:11:52 -05:00
attr-as-blocks.html.md website: Move hidden attr-as-blocks page into new URL structure 2021-01-22 12:22:21 -08:00
dependency-lock.html.md fix the typo (#28140) 2021-03-22 10:51:45 -04:00
index.html.md website: CLI: Update links to moved docs pages 2021-01-22 12:22:21 -08:00