ECR: support `force` upon deletion
See original GitHub issueWhen deleting an ECR repository using the SDK or CLI there’s a force
option which will delete the repository regardless if there images in the repository. Please support this option, otherwise users are forced to use a custom resource as a workaround.
For reference, see:
Issue Analytics
- State:
- Created 4 years ago
- Reactions:11
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Lifecycle policies - Amazon ECR - AWS Documentation
The lifecycle policy evaluator then applies the rules, based on rule priority, and displays which images in the repository are set to be...
Read more >How to force delete an AWS ECR with CloudFormation?
Using CloudFormation to delete a stack that contains an ECR with images results in a failure message: The repository with name 'my-repo' in ......
Read more >ECR is not deleting images; how to force layer upload
After deleting ECR images, uploading a new version does *not* actually upload ... please feel free to reach out to AWS Support for...
Read more >delete-repository — AWS CLI 2.4.18 Command Reference - ecr
Deletes a repository. If the repository contains images, you must either delete all images in the repository or use the force option to...
Read more >aws_ecr_repository | Resources | hashicorp/aws
delete - (Default 20m ). Import. ECR Repositories can be imported using the name , e.g., $ terraform import aws_ecr_repository.service test-service ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It looks like something similiar is already done with S3, with a custom resource here.
@MrArnoldPalmer @RomainMuller While I’m chasing the CloudFormation team to hopefully update us on this issue. Any chance the CDK team can implement it using a custom resource ?