Registering task definition via CLI gives an error
arun-gupta opened this issue · 1 comments
arun-gupta commented
Register task definition in apps/ecs/fargate/taskdefs
directory gives the following error:
$ aws ecs register-task-definition --cli-input-json file://greeting.json
Parameter validation failed:
Unknown parameter in input: "memory", must be one of: family, taskRoleArn, networkMode, containerDefinitions, volumes, placementConstraints
Unknown parameter in input: "requiresCompatibilities", must be one of: family, taskRoleArn, networkMode, containerDefinitions, volumes, placementConstraints
Unknown parameter in input: "cpu", must be one of: family, taskRoleArn, networkMode, containerDefinitions, volumes, placementConstraints
arun-gupta commented
AWS CLI was an older version. Updating to the latest version fixed the problem.