Channels
pacc-may-31-2023
prefect-ai
pacc-clearcover-june-12-2023
marvin-in-the-wild
data-ecosystem
geo-israel
geo-japan
prefect-cloud
ppcc-may-16-2023
prefect-azure
prefect-docker
prefect-recipes
gratitude
geo-nyc
geo-bay-area
geo-boston
geo-london
geo-dc
geo-chicago
geo-berlin
geo-texas
geo-seattle
geo-colorado
prefect-community
data-tricks-and-tips
prefect-aws
prefect-gcp
introductions
find-a-prefect-job
prefect-dbt
random
events
ask-marvin
show-us-what-you-got
prefect-getting-started
prefect-integrations
prefect-contributors
best-practices-coordination-plane
announcements
prefect-server
prefect-ui
prefect-kubernetes
Powered by
Title
j
Jordan Charlier
08/30/2022, 2:26 PM
Hi, in Prefect 1.0, can I automate the aws ecr auth ? Thanks !
✅ 1
a
Anna Geller
08/30/2022, 2:44 PM
This is a bit painful in 1.0, indeed as we don't have any feature addressing that directly. You can check how Michael addressed that in 2.0 with pretty slick caching logic
https://github.com/PrefectHQ/prefect-aws/blob/ecr-block/prefect_aws/ecr.py#L70-L73
alternatively, you could have a cron script on the same EC2 instance that does aws ecr login every 12 hours to refresh the token
j
Jordan Charlier
08/30/2022, 2:55 PM
Thanks for your answer. Do i have to restart the agent ?
a
Anna Geller
08/30/2022, 3:04 PM
no, it should work without restarting afaik
✅ 1
5 Views
#best-practices-coordination-plane
Join Slack