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

tflint: Add IncludeNotCreated option to GetModuleContent #160

Merged
merged 1 commit into from
May 3, 2022

Conversation

wata727
Copy link
Member

@wata727 wata727 commented May 2, 2022

Fixes #151

This PR adds a new option called IncludeNotCreated to GetModuleContentOption. This option controls the behavior of listing resources. By default, GetModuleContent returns only created resources, not uncreated resources such as count is 0 or unknown.
https://github.com/terraform-linters/tflint/blob/v0.35.0/tflint/runner.go#L271-L273

If this option is true, such resources will be included in the response. This behavior is useful for applying styles, naming conventions, etc., rather than checking for incorrect values. If this option is not set, the default behavior is the same as before.

@wata727 wata727 merged commit 283b9bb into master May 3, 2022
@wata727 wata727 deleted the include_not_created_option branch May 3, 2022 09:17
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.

Allow evaluation of resources including count and for_each
1 participant