silinternational/ecs-deploy

Parameter validation failed: Unknown parameter in input: "placementConstraints", must be one of: family, taskRoleArn, networkMode, containerDefinitions, volumes

irusappan-lakshmanan-nowp opened this issue · 3 comments

Hi Team,

Thanks for providing this wonderful script. I have been using your script for continuous deployment using jenkins. I recently moved my jenkins server to docker and configured your script. I am able to run the script at command line and it works without any issues but when configured it as a jenkins job it failed with below error message. Do I'm missing anything here.

ecs-deploy -c Cluster-1 -n service-v1 -i xxxxxx.dkr.ecr.eu-west-1.amazonaws.com/xxx:latest
Using image name: xxxxx.dkr.ecr.us-west-1.amazonaws.com/task-def-v2:latest

Current task definition: arn:aws:ecs:us-west-1:xxxx:task-definition/task-def-v2:7

Parameter validation failed:
Unknown parameter in input: "placementConstraints", must be one of: family, taskRoleArn, networkMode, containerDefinitions, volumes

Added to my comment, I've tried with passing all the available parameters no luck.

@irusappan-lakshmanan-nowp it's been close to forever since you created this issue, but did you ever figure it out? I believe this was probably caused by having an old version of aws-cli on your system that wasn't aware of the newer placementConstraints section of task definitions. This happens every time a new section is added to the definition file and we add support in ecs-deploy. I'll close the issue based on that but feel free to reopen if it's still an issue.