(aws-cdk): (CDK generates ECR repositories that don't have a lifecycle policy configured) #21870
Labels
@aws-cdk/aws-ecr
Related to Amazon Elastic Container Registry
bug
This issue is a bug.
cause/not-a-bug
Not a bug (might still be a documentation issue, might still need work)
Describe the bug
CDK provisioned ECR repositories cause the following finding in Security Hub:
ECR.3 ECR repositories should have at least one lifecycle policy configured
(https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-standards-fsbp-controls.html#ecr%E2%80%943-remediation)
Expected Behavior
I expected CDK-provisioned ECR repositories to have at least one lifecycle policy configured.
Current Behavior
CDK-provisioned ECR repositories don't have a lifecycle policy configured and are breaching Security Hub's AWS foundational security best practices.
Reproduction Steps
Deploy an ECR repo and note the new security finding in Security Hub.
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.35.0 (build 5c23578)
Framework Version
No response
Node.js Version
v14.18.1
OS
MacOS
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: