小编Mar*_*son的帖子

如何使用 CloudFormation 强制删除 AWS ECR?

使用 CloudFormation 删除包含带有图像的 ECR 的堆栈会导致失败消息:

The repository with name 'my-repo' in registry with id '123' cannot be deleted because it still contains images
Run Code Online (Sandbox Code Playgroud)

CLI 提供了一种通过使用--force标志来覆盖它的方法:

aws ecr delete-repository --repository-name my-repo --force
Run Code Online (Sandbox Code Playgroud)

如何仅使用 CloudFormation 获得相同的结果?

amazon-web-services amazon-ecs aws-cloudformation

7
推荐指数
1
解决办法
890
查看次数