aws / copilot-cli

The AWS Copilot CLI is a tool for developers to build, release and operate production ready containerized applications on AWS App Runner or Amazon ECS on AWS Fargate.
https://aws.github.io/copilot-cli/
Apache License 2.0
3.42k stars 398 forks source link

Avoid creating ECR repository when no need #3576

Open genbit opened 2 years ago

genbit commented 2 years ago

Today Copilot creates an empty ECR repository as part of svc init process, even if I provide a link to image repository I built and created outside of copilot. While ECR repositories costs nothing, this creates an unnecessary noise in my AWS inventory, and maybe could be an attack vector? Anyway, I would like Copilot to not create unnecessary AWS resources.

tuky commented 4 months ago

To make things worse, copilot is giving the new ECR repo a clashing name {{$app}}/{{$workload.Name}} that is already in use in our case. To make the switch to copilot we now have to give the copilot app a different name :/

tuky commented 4 months ago

To make things even more worse is that after deleting the application, at least it did not remove my repo, but it deleted all images inside :exploding_head: