I am trying to setup amazon-ecr-credential-helper on centos 7 machine. Used this document provided by aws as reference : https://github.com/awslabs/amazon-ecr-credential-helper
Can someone please help?
I am trying to setup amazon-ecr-credential-helper on centos 7 machine. Used this document provided by aws as reference : https://github.com/awslabs/amazon-ecr-credential-helper
Can someone please help?
3
Answers
AWS push their version of Centos so they are not interested in making this available. The same RPM might work but the manual install process is easy enough.
Based on this this blog
Install Go and git
Install the helper and move it into the path
Config, please adjust as needed. Note the region is also in the
config.json
fileThen your pull should work with
You can clone and build manually.
First install wget and git:
Then install go lang:
Add go lang to path, add following line to end of /etc/profile:
Then run it to reload path:
Finally clone the aws credentials helper, build it and copy to /usr/local/bin:
In a comment you mention Jenkins. If that is your use case, note that the
Pipeline: AWS Steps
plugin provides anecrLogin()
which you could use in aJenkinsfile
as follows, by-passing the need to install the ECR Credential Helper: