-
Notifications
You must be signed in to change notification settings - Fork 14
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
Allow evaluation of resources including count and for_each #151
Comments
Unfortunately, there is currently no way to do that, but we could add an option to control whether tflint-plugin-sdk/tflint/option.go Lines 16 to 22 in 3d6d075
As far as I remember, this should have had the same problem in v0.9. The major API update in v0.10 is just to resolve these problems. |
Interesting, then I just noticed this by testing the 0.10 update 😄 Adding an option to |
I updated to the plugin-sdk version 0.11.0 including the new GetModuleContent option. content, err := runner.GetModuleContent(
&hclext.BodySchema{
Blocks: []hclext.BlockSchema{
{
Type: "resource",
LabelNames: []string{"type", "name"},
},
},
},
&tflint.GetModuleContentOption{
IncludeNotCreated: true,
},
) |
Are you using it with TFLint v0.36.2? In v0.35, this option is simply ignored. |
Thanks, my TFLint version was outdated |
We have created an internal tflint plugin which checks checks for our naming convention on all resources in a state. With the update to the new v10 plugin sdk I noticed that some resources are skipped when they include for example a count.
In the following example only the aws_eip.two is evaluated:
aws_eip.one is skipped with the following warning:
I'm getting a list of resources via GetModuleContent, this list doesn't include the skipped resources:
Is there any option to disable this skipping behaviour for specific plugins?
Similar issue in tflint: terraform-linters/tflint#1068
The text was updated successfully, but these errors were encountered: