aws_ecr: CDK only creates "ECRAutoDeleteImagesCustomResourceProvider" for 1 ECR repository instead of 2 #26025
Labels
@aws-cdk/aws-ecr
Related to Amazon Elastic Container Registry
bug
This issue is a bug.
duplicate
This issue is a duplicate.
effort/medium
Medium work item – several days of effort
p1
Describe the bug
I create 2 repositories with removal_policy set to Destroy and with auto_delete_images set to True.
When CDK presents me with the IAM Statements, there is only "ECRAutoDeleteImagesCustomResourceProvider" for the first repository. Due to this when I destroy the stack only the first repository gets deleted and I get an error on the 2nd repository saying that t I dont have permissions to delete the images:
Expected Behavior
When I destroy the stack both repositories get deleted and not just the first one.
Current Behavior
When I destroy the stack only first repository gets deleted and I get an error:
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.83.1 (build 006b542)
Framework Version
No response
Node.js Version
v16.14.2
OS
Windows 10
Language
Python
Language Version
Python 3.10.4
Other information
No response
The text was updated successfully, but these errors were encountered: