问题
How to delete aws ECR repository which contain images through cloudformation? getting below error while deleting it.
The repository with name 'test' in registry with id '**********' cannot be deleted because it still contains images
回答1:
I was able to do this by first deleting all images in ECR and then going back to CloudFormation and deleting again. Instructions for deleting images are here: https://docs.aws.amazon.com/AmazonECR/latest/userguide/delete_image.html. After I did that, I was able to head back to CloudFormation and delete with no problems.
来源:https://stackoverflow.com/questions/49277590/how-to-delete-aws-ecr-repository-which-contain-images-through-cloudformation