Hello. We are trying to setup ECS prefect run conf...
# ask-community
a
Hello. We are trying to setup ECS prefect run config with prefect cloud and this thing just refuses to work out of the box. There is a huge lack of logging inside ecs agent, it does a lot of work by generating task definition but never actually shows generated definition, if registration fails. First issue I faced was that task definision generated by default was invalid, and i was receiving
An error occurred (InvalidParameterException) when calling the RunTask operation: Task definition does not support launch_type FARGATE.
because generated definition lacks
requiresCompatibilities
field. Trying to solve that with custom task definition, i constantly run into different errors like missing field here and there and a problem that definition registration script patches my task definition with its invalid values. Right now i am unable to fight a problem when generated definition have null container name, though docker storage, and run config have them set. I can not debug anything without any logging.
z
have you tried setting the logging level to debug on the agent?
a
How it helps if there are no logging statements by design in the agent code itself?
z
z
Hey @Alexander -- I'd be happy to review a PR adding more logs to the ECS agent.
Regarding the requiredCompatibilities error, this should have been resolved by https://github.com/PrefectHQ/prefect/pull/4325
(which is in 0.14.15+)
a
Looking at the commit history, i see several hotfixes on this agent in a newer versions. I will try latest version and come back
c
@Alexander gimme a shout if you want some eyes on this, we've been working on some IaC deployments for Prefect on ECS 👋