6631d7cd0a
Previously we were incorrectly passing down the original forEachCtx down to nested child blocks for recursive expansion. Instead, we must use the iteration-specific constructed EvalContext, which then allows any nested dynamic blocks to use the parent's iterator variable in their for_each or labels expressions, and thus unpack nested data structures into corresponding nested block structures: dynamic "parent" { for_each = [["a", "b"], []] content { dynamic "child" { for_each = parent.value content {} } } } |
||
---|---|---|
.. | ||
dynblock | ||
include | ||
transform | ||
typeexpr | ||
userfunc | ||
README.md |
HCL Extensions
This directory contains some packages implementing some extensions to HCL
that add features by building on the core API in the main hcl
package.
These serve as optional language extensions for use-cases that are limited only to specific callers. Generally these make the language more expressive at the expense of increased dynamic behavior that may be undesirable for applications that need to impose more rigid structure on configuration.