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.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ