You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
$ aws cloudcontrol delete-resource --identifier testrepository --type-name 'AWS::ECR::Repository'
Step4 - Look for error message
$ aws cloudcontrol list-resource-requests --resource-request-status-filter Operations=DELETE,OperationStatuses=FAILED --query 'ResourceRequestStatusSummaries[?Identifier==`testrepository`]'
Other Details
No response
The text was updated successfully, but these errors were encountered: