Carlos Velazquez

09/11/2023, 4:12 PM
Hello Guys! I have a weird problem with prefect2. Recently we ramp up to PROD, But now we have an error that we haven't in Stag. Any clu?
Copy code
prefect_aws.workers.ecs_worker.TaskFailedToStart: ResourceInitializationError: unable to pull secrets or registry auth: execution resource retrieval failed: unable to retrieve secrets from ssm: service call has been retried 5 time(s): RequestCanceled: request context canceled caused by: context deadline exceeded. Please check your task network configuration.

Islam Otmani

09/15/2023, 5:22 PM
Hi Carlos, I hope you're well! It's highly likely a missing IAM permission or a AWS Secrets Manager secrets reference that's correctly set-up for Staging but not Prod. AWS has a runbook that you can run to troubleshoot this kind of error:
Hope this helps!