ECR:The security token included in the request is expired

0

I'm trying to push my image to ECR, it has 7G in one layer, and my internet connection is not very good, so it may take more than a day to upload it. But at the end I got a token expired prompt. Is there a way to extend the life of the token, or solve my problem?

已提问 1 年前434 查看次数
1 回答
0

You are probably using HTTP API authentication, the token is valid for 60 seconds by default. You could alternately authenticate to an Amazon ECR private registry with the CLI. Here you could find further info https://docs.aws.amazon.com/AmazonECR/latest/userguide/registry_auth.html

get-login-password -> https://docs.aws.amazon.com/cli/latest/reference/ecr/get-login-password.html#get-login-password

profile pictureAWS
已回答 1 年前
  • Thank you, in fact I am using private registry. Its time limit is 12 hours. But the upload time I need is more than 24 hours. I've now written a loop to periodically update my tokens, I'm not sure if this is possible.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则