jack
02/16/2022, 5:10 PMAnna Geller
jack
02/16/2022, 5:24 PMlogConfiguration: null
Anna Geller
jack
02/16/2022, 6:12 PMRUN_CONFIG = ECSRun(
run_task_kwargs={'cluster': 'default'},
execution_role_arn='arn:aws:iam::00000000000:role/ecsTaskExecutionRole',
task_role_arn='arn:aws:iam::00000000000000:role/prefect-ecs-task-role',
labels=['ecs-agent'],
memory='8 GB',
)
Anna Geller
prefect-ecs-task-role
has a logging configuration, logging to CloudWatch should work. If not, feel free to build a small reproducible example and submit a Github issue and I can try to replicate and fix when possible.
But based on this message (which I misread at first) - this is likely the issue. You need that logConfiguration on your flow run ECS task definition for the logs to appear in CloudWatchjack
02/16/2022, 6:27 PMprefect-ecs-task-role
includes thisAnna Geller
aws logs create-log-group --log-group-name $ECS_LOG_GROUP_NAME --region $AWS_REGION
jack
02/16/2022, 6:49 PMECSRun
?Kevin Kho
Anna Geller
Kevin Kho
Kevin Grismore
02/16/2022, 7:29 PM