Nikhil Jain
02/08/2023, 12:16 AMSubmission failed. botocore.exceptions.ParamValidationError: Parameter validation failed: Unknown parameter in input: "deregisteredAt", must be one of: family, taskRoleArn, executionRoleArn, networkMode, containerDefinitions, volumes, placementConstraints, requiresCompatibilities, cpu, memory, tags, pidMode, ipcMode, proxyConfiguration, inferenceAccelerators, ephemeralStorage, runtimePlatform
I don’t get this error if I deploy the flows locally, but when the flows are deployed from circleci, this error is generated.Rob Freedy
02/08/2023, 7:32 PMNikhil Jain
02/08/2023, 7:32 PM# Get the revision of the task_definition_arn
result = ecs_client.list_task_definitions(
familyPrefix='prefect2_artemis_ecs_task',
status='active',
maxResults=1,
sort='DESC',
)
task_def_arn = result['taskDefinitionArns'][0]
ecs_task_block = ECSTask(
task_definition_arn=task_def_arn,
cluster=f'{env}-prefect-cluster',
vpc_id=vpcs[env],
task_customizations=[
{
"op": "add",
"path": "/networkConfiguration",
"value": {
"awsvpcConfiguration": {
"subnets" : subnets[env],
"securityGroups" : security_groups[env],
"assignPublicIp" : "DISABLED"
}
}
}
],
configure_cloudwatch_logs=True,
stream_output=True,
)
ecs_task_block.save(f'{env}-artemis-ecs-block', overwrite=True)
ECS block.boto3==1.26.66
botocore==1.29.66
prefect==2.7.0
prefect-aws==0.2.1
Rob Freedy
02/08/2023, 7:37 PMNikhil Jain
02/08/2023, 7:40 PMPREFECT_API_URL
is missing in this project’s setup. I’ll try setting that.PREFECT_API_URL
. Difficult to get there from the error message above! 🙂 Thanks a lot for your help!Rob Freedy
02/09/2023, 4:08 AM