Deploy to AWS ECR

Brandon's Avatar

Brandon

28 Oct, 2019 11:44 PM

I don't see any examples or discussions about publishing a container image artifact to AWS ECR. Is there anything preventing this from working? It seems like a natural item to be set as a deployment provider in the yaml.

Is anyone doing this? I'm checking so that there is a record yes or no about the feasibility. It is helpful to know if the answer is no, so people don't have to rediscover the same thing over and over.

Thanks

  1. Support Staff 1 Posted by Feodor Fitsner on 29 Oct, 2019 02:36 AM

    Feodor Fitsner's Avatar

    Hi Brandon,

    It's not yet supported though it would be great to have such a deployment provider. Supporting Docker Hub and Azure ACR would be great too.

    How does publishing to ECR work? Is it just regular docker push with some credentials?

  2. 2 Posted by Brandon on 29 Oct, 2019 04:55 PM

    Brandon's Avatar

    Running:

    aws ecr get-login --region my_region --no-include-email

    Will return:

    docker login -u AWS -p aws_password https://aws_account_id.dkr.ecr.my_region.amazonaws.com

    That gives an authentication token that is good for 12 hours.

    To push an image, first tag it with:

    docker tag my_tag aws_account_id.dkr.ecr.my_region.amazonaws.com/my-app

    Then push:

    docker push aws_account_id.dkr.ecr.my_region.amazonaws.com/my-app

    Login:
    https://docs.aws.amazon.com/AmazonECR/latest/userguide/registries.h...
    Push:
    https://docs.aws.amazon.com/AmazonECR/latest/userguide/docker-push-...

  3. Support Staff 3 Posted by Feodor Fitsner on 29 Oct, 2019 05:02 PM

    Feodor Fitsner's Avatar

    Thanks! I've added a new issue: https://github.com/appveyor/ci/issues/3164

  4. Feodor Fitsner closed this discussion on 03 Apr, 2020 06:45 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac