Skip to content
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.

If a terraform resource block contains a count parameter, checkov show the same errors multiple times #131

Open
jenswegar opened this issue May 3, 2023 · 0 comments

Comments

@jenswegar
Copy link

If I have a resource block that contains a count, e.g. 10. and Checkov finds an error in that block, the extension outputs the same error multiple times (note in the screen shots the change in count number vs popup error messages):

Screenshot 2023-05-03 at 12 44 00

Screenshot 2023-05-03 at 12 43 40

Screenshot 2023-05-03 at 12 41 10

This seems to be regardless of resource type. I would expect there to be only one error message per block, and not 1 error message per instance that would be created if the template would be applied. Scanning the same template file with the Checkov CLI tool produces only one result per block as expected.

Checkov version 2.3.216 is in use in my VS code install.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant