Is there a way to edit AWS ECR image tags or otherwise manage them?

0

I want to set tags in case I use an older version of the AWS ECR image.

If you push with the same tag, it becomes <untagged>.

So I searched and there was a method of retagging in the docs, but it was a method of attaching multiple tags. https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-retag.html

Is there a way to directly edit or is there another tag management method?

joker
asked a year ago321 views
1 Answer
1
Accepted Answer

Generally I would suggest you to configure your repository to be immutable to prevent image tags from being overwritten if you need to use older version of image. Immutable tags gives you a way to easily and uniquely identify an image.

In your case, if your image tagged like v1.0.1, v1.0.2, v1.0.3 etc.. You can use the old version tag directly for rollback (v1.0.1). This blog by Marius discussed best practice about how we should tag the image.

You can edit ECR Image tag mutability here: https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-tag-mutability.html

Alick
answered a year ago
profile picture
EXPERT
reviewed 7 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions