Git Product home page Git Product logo

Comments (4)

ilazakis avatar ilazakis commented on May 24, 2024

Hey @gillouche , thanks for raising the issue; I haven’t upgraded to cli v2 yet, thank you for pointing out the corresponding issue on AWS’s repo.

Sounds like we’re going to have to adjust the command to accommodate for both versions if possible (presumably by checking the aws cli’s version before talking to ECR).

from sagify.

juliensimon avatar juliensimon commented on May 24, 2024

Hi,

I hit the same issue. This should work.

# Get the login command from ECR and execute it directly
if [[ ! -z "$profile" ]]; then
     aws --region ${region} ecr get-login-password --profile ${profile} | docker login --username AWS --password-stdin ${account}.dkr.ecr.${region}.amazonaws.com
else
     aws --region ${region} ecr get-login-password | docker login --username AWS --password-stdin ${account}.dkr.ecr.${region}.amazonaws.com
fi

AWS CLI v2 has been out for almost 6 months now, I'd recommend going for it :)

*** EDIT: yes, this works. I just tested it.

Started pushing Docker image to AWS ECS. It will take some time. Please, be patient...
Docker image pushed to ECS successfully!

from sagify.

makarono avatar makarono commented on May 24, 2024

Hi

this is my oneliner which works . You just need to change PROF variable value to your aws cli profile id

PROF=test-poc; $(aws ecr get-login-password --profile ${PROF} | docker login -u AWS --password-stdin $(aws sts get-caller-identity --query 'Account' --output text --profile ${PROF}).dkr.ecr.$(aws configure get region --profile ${PROF}).amazonaws.com)

from sagify.

pm3310 avatar pm3310 commented on May 24, 2024

Hey folks, @makarono @gillouche @juliensimon issue should be solved since Sagify version 0.20.8. FYI, the lastest Sagify version is 0.20.9.

from sagify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.