-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
terraform: Modules can opt in to allowing unknown_instances
When the unknown_instances language experiment is active, Terraform will accept unknown values in count and for_each arguments for resource, data, and module blocks. The unknown-ness of the expansion will be registered with the instance expander for later use, but much of the rest of the modules runtime is not yet equipped to deal with that situation, and so as of this commit the experiment will just cause some broken behavior if used. There are therefore no integration tests for this behavior just yet, because there's no reasonable expected behavior for such tests to assert. Behavior when the experiment is not enabled should remain unchanged. Proper handling of the unknown-expansion situation will develop over subsequent commits, along with integration tests once there's enough in place to write them, with this experiment being concluded only after all of that work has completed.
- Loading branch information
1 parent
ae2a64a
commit baa0f78
Showing
3 changed files
with
47 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters