I was finally able to set up a prefect worker serv...
# ask-community
e
I was finally able to set up a prefect worker service in my ECS, and I defined an execution role ARN in the task definition. However, I'm still getting the following error when I submit my flow run:
Copy code
botocore.errorfactory.ClientException: An error occurred (ClientException) when calling the RegisterTaskDefinition operation: Fargate requires task definition to have execution role ARN to support ECR images.
Wondering if I'm maybe using an outdated image, because parts of the documentation here didn't work: https://prefecthq.github.io/prefect-aws/ecs_guide/
m
@Eric, I came across this issue. After creating task definition for the flow run, from the UI, I attached those task definition details and aws credentials block to the ecs work pool that you have created.
e
Hey @Manoj Ravi, thanks for your help. Can you explain what you mean by creating a task definition detail? And why do I need a separate AWS credential, my ECS cluster should have those permissions already right?
Ah nevermind, I misunderstood what you were saying!
m
Cool, Hope its working now !! If you want we can connect and discuss.