Join Slack
Powered by
Hi, in Prefect 1.0, can I automate the aws ecr aut...
# best-practices
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
Anna Geller
08/30/2022, 2:45 PM
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
Open in Slack
Previous
Next