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.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南