Sorry to ask multiple questions but I have a flow that is running on ECR which fails with the following message
Copy code
An error occurred (ClientException) when calling the RegisterTaskDefinition operation: Invalid setting for container 'flow'. At least one of 'memory' or 'memoryReservation' must be specified.
I have set memory (and cpu) in the ECSRun task_definition (both quoted and unquoted) and still get this error. Does anyone know what I might try?
discourse 1
k
Kevin Kho
04/05/2022, 9:31 PM
No worries! Here to help. Can I see your task definition?
a
Anna Geller
04/05/2022, 9:34 PM
ECS is super specific about what you need to set there. We saw a similar issue when the image was not set explicitly - you need to check the required arguments for an ECS task definition and you need to set them all explicitly unless you let Prefect create and register a task definition for you - if you need some examples, check out those here with the name "ecs" in it
r
Rhys Mansal
04/05/2022, 9:36 PM
thank you. I think it's the lack of the explicit image then.
👍 1
k
Kevin Kho
04/05/2022, 9:37 PM
no no. yours says memory. I think it was some memory also specified in the task definition
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.