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.52k stars 414 forks source link

Configure ECR lifecycle policy via Copilot #1832

Open sirbully opened 3 years ago

sirbully commented 3 years ago

Is there any way we can configure the lifecycle policy for the automatically generated ECR? I don't know if I missed it in the docs or if I should be doing it manually from the AWS console instead

efekarakus commented 3 years ago

Hi @sirbully, thanks for the issue! We don't have a way of updating the ECR settings in Copilot at the moment 🙇. This would be a new feature request for us.

afgallo commented 2 years ago

Hi @efekarakus just came across this now. Is there a way to use an add-on to achieve this?

efekarakus commented 2 years ago

Hi @afgallo !

Unfortunately not at the moment, today the modification of "app" stacks is a bit difficult. If you'd like your ECR repositories to follow a certain ECR lifecycle policy, there are two possible ways:

  1. Update the repos with the AWS CLI or with the console
  2. Alternatively, you can update Copilot's stackset's template: stackset

    So that the ECR repos have a lifecycle policy.

Hope this helps! We're actively working on the "environment manifest" today where we're going to allow modification of the environment stack resources, after that we'll explore the "application manifest" as an issue!

Fodoj commented 2 years ago

Is application manifest work already in progress? I could try to contribute, especially for ecr lifecycle policies. What I am doing right now is importing copilot-managed repos to Terraform, and then managing lifecycle policies with Terraform

huanjani commented 2 years ago

Hi @Fodoj! We haven't yet begun work on app manifests; we're just finishing up env manifests (https://github.com/aws/copilot-cli/issues/3522). We always welcome contributions; please follow the guidelines here. Thanks so much!

dumim commented 1 year ago

Hi, any progress on this so far? I cannot find any information about ECR Lifecycle policies on the Copilot docs.

akshat-pyor commented 10 months ago

Hi, any progress on this so far ?

PauloFerreira25 commented 4 months ago

+1

rubiconjosh commented 4 months ago

+1

johnAirRobe commented 2 months ago

+1