https://prefect.io logo
Title
j

John O'Farrell

06/07/2022, 2:40 PM
Hey, I'm trying to configure an ECSRun using a task definition. However when I try running it, it throws
An error occurred (ClientException) when calling the RegisterTaskDefinition operation: Container.image should not be null or empty.
even though I know that the image URI that I'm using within
containerDefinitions
has content.
k

Kevin Kho

06/07/2022, 2:54 PM
Can I see the task definition? Do you define it in the
ECSRun
or do you supply a task definition?
j

John O'Farrell

06/07/2022, 2:58 PM
Right now I'm defining it as a dict that I pass in as the task definition parameter for an ECSRun config
k

Kevin Kho

06/07/2022, 3:01 PM
Prefect requires the containerDefinitions name to be
flow
to find where to run the Flow. Maybe you can try changing the name?
j

John O'Farrell

06/07/2022, 3:08 PM
That made a difference thanks