Skip to content

Unable to load module list index out of range #7314

@cgunston

Description

@cgunston

Describe the issue
We have noticed recently that our Checkov scans are outputting the following warnings -

2025-09-24 14:09:52,639 [MainThread  ] [WARNI]  Unable to load module (terraform-aws-modules/ecr/aws): list index out of range
2025-09-24 14:11:09,768 [MainThread  ] [WARNI]  Unable to load module (terraform-aws-modules/ecr/aws): list index out of range
2025-09-24 14:11:11,801 [MainThread  ] [WARNI]  Unable to load module (terraform-aws-modules/kms/aws): list index out of range

This list continues with other terraform-aws-modules being used. This also seems to have significantly increased our scan times now taking + 10 minutes when this used to be less than 1 minute.

Example Value
Example of our checkov command -

 checkov -f /azp/_work/1/s/infrastructure/deployments/dev/terraform.json --repo-root-for-plan-enrichment /azp/_work/1/s/infrastructure/deployments/dev --download-external-modules True --skip-check CKV_AWS_5,CKV_AWS_37 -o junitxml --soft-fail

Any help would be greatly appreciated

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions