I'm trying to push my Docker image to AWS Lambda, but I'm facing an authentication problem. like:
Your authorization token has expired. Reauthenticate and try again. Can't push the image to AWS Lambda - fails with "no basic auth credentials" "no basic auth credentials" docker push
In case someone is still looking for an answer:
I did this and it works:
first, run this command:
aws configure
in order to obtain your
Access key ID:
and
Secret access key:
2- Go to IAM->Users->"your user"->Security credentials-> Create Access Key
and chose your region
then click enter
now run this command again
aws ecr get-login-password | docker login --username AWS --password-stdin `Your repositoryUri`
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.