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?

preguntada hace un año434 visualizaciones
1 Respuesta
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
respondido hace un año
  • 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.

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas