Skip to content
This repository was archived by the owner on Oct 27, 2024. It is now read-only.
This repository was 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

@jenswegar

Description

@jenswegar

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions