Hey there, Is there storage support for AWS ECR ? ...
# prefect-community
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 ?
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.