Open corymhall opened 1 month ago
Hey, this is a known issue for CloudFormation. The fix is in the road map and coming soon. Before the fix coming in, we suggest customers to do two-step approach for delete. That is, delete the contents of ECR Repository first and then invoke delete using CCAPI.
Please let me know if you have any other questions. Thanks!
Name of the resource
AWS::ECR::Repository
Resource Name
No response
Issue Description
EmptyOnDelete was added to CloudFormation, but it doesn't work in CloudControl.
Expected Behavior
I would expect for a repository with
EmptyOnDelete=true
to be successfully deleted when it contains images.Observed Behavior
The delete fails with
Test Cases
Step1 - Create a repository with
EmptyOnDelete=true
Step2 - Push an image
Step3 - Delete resource
Step4 - Look for error message
Other Details
No response