question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ECR: support `force` upon deletion

See original GitHub issue

When 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:

  1. https://docs.aws.amazon.com/cli/latest/reference/ecr/delete-repository.html
  2. https://docs.aws.amazon.com/AmazonECR/latest/APIReference/API_DeleteRepository.html

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:11
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
NukaCodycommented, Apr 20, 2021

It looks like something similiar is already done with S3, with a custom resource here.

1reaction
heibacommented, May 30, 2021

@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 ?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found