Mac
02/14/2022, 5:54 PMAn error occurred (ClientException) when calling the RegisterTaskDefinition operation: Container.image should not be null or empty
I'm have defined the task as a yaml file (e.g. https://github.com/anna-geller/packaging-prefect-flows/blob/master/flows/s3_ecs_run_custom_task_definition.py) and that works fine, so I am not sure what I am doing wrong. Thanks!Kevin Kho
Kevin Kho
name
to something other than flow
?Mac
02/14/2022, 7:08 PMRUN_CONFIG = ECSRun(
labels=["prod"],
task_definition=dict(
family="*********",
requiresCompatibilities=["FARGATE"],
executionRoleArn="arn:aws:iam::*******:role/**********",
taskRoleArn="arn:aws:iam::*********:role/*****",
networkMode="awsvpc",
cpu=512,
memory=1024,
containerDefinitions=[
dict(
name="*********",
image="*****.<http://dkr.ecr.us-east-1.amazonaws.com/****:latest|dkr.ecr.us-east-1.amazonaws.com/****:latest>",
essential=True,
logConfiguration=
dict(
logDriver="awslogs",
options=
{
"awslogs-group":"/ecs/***",
"awslogs-region":"us-east-1",
"awslogs-stream-prefix":"ecs",
},
),
secrets=[
dict(
valueFrom="arn:aws:secretsmanager:*****",
name="secret_name",
)
],
),
],
),
run_task_kwargs=dict(cluster="prefectEcsCluster"),
)
Mac
02/14/2022, 7:23 PMbotocore.errorfactory.InvalidParameterException: An error occurred (InvalidParameterException) when calling the RunTask operation: Override for container named flow is not a container in the TaskDefinition.
I assume these errors are relatedKevin Kho
name
to be named flow
for the one that actually runs the FlowMac
02/14/2022, 7:33 PMKevin Kho
Mac
02/14/2022, 8:28 PMKevin Kho
Mac
02/14/2022, 8:34 PMKevin Kho
Mac
02/14/2022, 9:06 PMKevin Kho
Mac
02/14/2022, 9:18 PMKevin Kho