https://prefect.io logo
s

Sagun Garg

12/22/2020, 11:01 AM
Hey there, Is there storage support for AWS ECR ? (To store our docker image directly ECR ) https://docs.prefect.io/orchestration/flow_config/storage.html I checked this but it dosen't explicitly state it How do I mention the Auth credentials for AWS ECR while using this ? Is it it automatically picks from my local aws configured credentials to hit the same. ? Where do we specify login credentials for the same ?
m

Mike Marinaccio

01/04/2021, 10:31 PM
Hey Sagun - did you ever figure this out? I’m running into the same issue. Thanks!
Got it. For others who find this helpful, you must first use both the AWS and Docker CLIs to authenticate by running something like the below:
Copy code
aws ecr get-login-password | docker login --username=AWS --password-stdin <ECR endpoint id>.dkr.ecr.<region>.<http://amazonaws.com|amazonaws.com>
It probably makes sense to include this step in some other script to ensure the service is authenticated before invoking Prefect Storage.
1
4 Views