cdk-ecr-deployment
cdk-ecr-deployment copied to clipboard
Deploy a image with multiple tags
Could we deploy a image with multiple tags(e.g. my-app:latest & my-app:20220801) into an ECR repo?
Thanks!
You will have to create multiple deployments to push to different tags. With ECR repos, tags are really but is a unique thing, it's not so much adding a new tag to an existing thing, but pushing the same thing multiple times. Of course the second push should be much faster since the registry will be able to deduplicate the layers based on the hash.
Architecturally this package is currently implement as a simple copy instruction. To save on the second push, we'd might have to change to a pull and push to multiple targets methods.