Hello Everyone, I’m currently migrating our infra ...
# ask-community
a
Hello Everyone, I’m currently migrating our infra from Prefect 1 to Prefect 2. In Prefect 1 I would create a
Flow Config
and assign
Storage
to a
Docker
type and pass it the ECR registry_url, image_tag, etc. When trying to configure the same thing for Prefect 2 I came across the Docker Registry Block that I would assume it would be compatible with ECR but it asks me for username and password credentials while we use rotating creds as authorization tokens for ECR are usually temporary. What are the best practices in Prefect 2 to communicate and retrieve the flow code stored in Amazon ECR?
1
s
t
Depending on your execution environment, you can set this as a permission using IAM. I am actually writing a guide for ECS execution. https://github.com/taylor-curran/prefect-aws/blob/main/docs/ecs_guide.md#step-1-create-an-iam-role-for-the-ecs-task