https://pulumi.com logo
Title
f

fresh-spring-82225

05/09/2023, 1:46 AM
Is there a way to copy an existing docker image from one ecr repo to another using Pulumi?
d

dry-sugar-28823

05/09/2023, 9:18 AM
I'm not aware of a way to copy using Pulumi - it can be done with a self-hosted GitHub/GitLab runner though. Why do you need it copied? Pulumi can build and store an image that is identical to the one you are speaking of in the newly specified ECR repo.
f

fresh-spring-82225

05/09/2023, 4:06 PM
I’m considering a model where the image is created in CI and pushed to a “build repo.” Then when it comes time to deploy it, it would be copied to the “deploy repo,” followed by other deployment steps like creating a lambda. The deploy steps I want to do in Pulumi.
f

fierce-ability-58936

05/09/2023, 9:45 PM
What you can do with Pulumi is https://repost.aws/knowledge-center/secondary-account-access-ecr Otherwise skopeo can be used to copy an image.