I use BitBucket pipelines with pipe:
- <span>pipe</span>: atlassian/aws-ecs-deploy:1.6.1<br> <span>variables</span>:<br> <span>AWS_ACCESS_KEY_ID</span>: <span>'<string>'</span><br> <span>AWS_SECRET_ACCESS_KEY</span>: <span>'<string>'</span><br> <span>AWS_DEFAULT_REGION</span>: <span>'<string>'</span><br> <span>CLUSTER_NAME</span>: <span>'<string>'</span><br> <span>SERVICE_NAME</span>: <span>'<string>'</span><br> <span>TASK_DEFINITION</span>: task-definition.json
The file "task-definition.json" contains element:
"runtimePlatform": {
"operatingSystemFamily": "LINUX",
"cpuArchitecture": "X86_64"
}
When the pipeline performs a step that contains mentioned pipe I can see the exception:
<span>✖ ECS task definition parameter validation error: </span>
<span>Parameter validation failed:</span>
<span>Unknown parameter in input: "runtimePlatform", must be one of: family, taskRoleArn, executionRoleArn, networkMode, containerDefinitions, volumes, placementConstraints, requiresCompatibilities, cpu, memory, tags, pidMode, ipcMode, proxyConfiguration, inferenceAccelerators<br><br><br>How to configure pipe: atlassian/aws-ecs-deploy:1.6.1 to resolve the issue: sometimes AWS requires to specify runtimePlatform? </span>