Skip to content

fix(terraform): 'count' meta argument sourced from submodule output#37

Draft
Emyrk wants to merge 1 commit intomainfrom
coder/module_output_count_v0_69
Draft

fix(terraform): 'count' meta argument sourced from submodule output#37
Emyrk wants to merge 1 commit intomainfrom
coder/module_output_count_v0_69

Conversation

@Emyrk
Copy link
Member

@Emyrk Emyrk commented Mar 9, 2026

@Emyrk Emyrk mentioned this pull request Mar 9, 2026
Expand count blocks can depend on submodule returns

Do not expand unknown `count` blocks. Run `expandBlocks` in eval to
allow submodule returns to affect the `count` when using module
outputs.
@Emyrk Emyrk force-pushed the coder/module_output_count_v0_69 branch from b3d1b10 to 494b512 Compare March 9, 2026 16:37
}

if !forEachVal.IsKnown() {
if !forEachVal.IsWhollyKnown() {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is required because now we try to expand blocks earlier then we tried before

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant