Hey, I am using `Docker` storage to push an image...
# ask-community
b
Hey, I am using
Docker
storage to push an image to ECR. I am authenticated with
aws sts assume-role
locally in my CLI. I am trying to push the image locally at the moment and getting an error with:
File "/Users/benmuller/code/es-betfair-flows/.venv/lib/python3.8/site-packages/prefect/storage/docker.py", line 585, in push_image
raise InterruptedError(line.get("error"))
InterruptedError: denied: Your authorization token has expired. Reauthenticate and try again.
How can I make sure that my
sts
creds are honoured ?
k
Hey @Ben Muller, did you do something like:
aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin <http://123456678.dkr.ecr.us-east-2.amazonaws.com|123456678.dkr.ecr.us-east-2.amazonaws.com>
to authenticate to ECR?
Have you seen this article?