Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

terraformrules: Get module contents with IncludeNotCreated: true #1458

Merged
merged 1 commit into from
Jul 29, 2022

Conversation

wata727
Copy link
Member

@wata727 wata727 commented Jul 29, 2022

Fixes #1455

By default, the GetModuleContent API follows the Terraform semantics and does not return resources with count = 0 or for_each = []. The same is true if these values cannot be evaluated (e.g. local value).

All resources can always be returned by using the IncludeNotCreated option. Terraform rules are more concerned with the definition and structure itself than whether the resource is created, so we should basically enable this option.

@wata727 wata727 merged commit c40ee70 into master Jul 29, 2022
@wata727 wata727 deleted the include_unevaluated branch July 29, 2022 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

terraform_unused_required_providers can't handle local variables + for each
1 participant