Carlos Soza
04/09/2022, 2:57 PMKevin Kho
04/09/2022, 3:19 PMCarlos Soza
04/09/2022, 3:29 PMflow.run_config = ECSRun(
task_definition={
"containerDefinitions": [
{
"name": "flow",
"image": MY_ECR_IMAGE",
},
}
],
"family": flow_name,
"networkMode": "awsvpc",
"memory": "4096",
"cpu": "2048",
"requiresCompatibilities": ["FARGATE"],
"taskRoleArn": MY_TASK_ARN_ROLE,
},
execution_role_arn=MY_EXECUTION_ROLE,
task_role_arn="MY_TASK_ARN_ROLE,
labels=["prefect-ecs-agent"],
)
When i change the name a custom name I’ve get the error.
Not working config:
flow.run_config = ECSRun(
task_definition={
"containerDefinitions": [
{
"name": "flow_test",
"image": MY_ECR_IMAGE",
},
}
],
"family": flow_name,
"networkMode": "awsvpc",
"memory": "4096",
"cpu": "2048",
"requiresCompatibilities": ["FARGATE"],
"taskRoleArn": MY_TASK_ARN_ROLE,
},
execution_role_arn=MY_EXECUTION_ROLE,
task_role_arn="MY_TASK_ARN_ROLE,
labels=["prefect-ecs-agent"],
)
Kevin Kho
04/09/2022, 4:16 PMflow
name is a requirement. And glad you got it working!