https://prefect.io logo
Title
n

Nikhil Jain

02/08/2023, 12:16 AM
Getting a strange new error during flow submission:
Submission 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.
r

Rob Freedy

02/08/2023, 7:32 PM
Is this for Prefect 1 or 2? Do you have the ECS configuration that you can share?
n

Nikhil Jain

02/08/2023, 7:32 PM
Prefect 2.
# 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
r

Rob Freedy

02/08/2023, 7:37 PM
Are the ECSTask and AWSCredentials blocks being registered in the CircleCI environment? (the third bullet point in this doc)
n

Nikhil Jain

02/08/2023, 7:40 PM
Yes for ECSTask block. Not using AWSCredentials block, I don’t think that’s required.
I have a similar circleci setup for another project using prefect2 and that has been working fine.
I just realized that it’s possible that
PREFECT_API_URL
is missing in this project’s setup. I’ll try setting that.
👍 1
It worked after setting
PREFECT_API_URL
. Difficult to get there from the error message above! 🙂 Thanks a lot for your help!
r

Rob Freedy

02/09/2023, 4:08 AM
Glad you got it working!!