I use BitBucket pipelines with pipe:
- pipe: atlassian/aws-ecs-deploy:1.6.1
variables:
AWS_ACCESS_KEY_ID: '<string>'
AWS_SECRET_ACCESS_KEY: '<string>'
AWS_DEFAULT_REGION: '<string>'
CLUSTER_NAME: '<string>'
SERVICE_NAME: '<string>'
TASK_DEFINITION: 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:
✖ ECS task definition parameter validation error:
Parameter validation failed:
Unknown parameter in input: "runtimePlatform", must be one of: family, taskRoleArn, executionRoleArn, networkMode, containerDefinitions, volumes, placementConstraints, requiresCompatibilities, cpu, memory, tags, pidMode, ipcMode, proxyConfiguration, inferenceAccelerators
How to configure pipe: atlassian/aws-ecs-deploy:1.6.1 to resolve the issue: sometimes AWS requires to specify runtimePlatform?
@Roman Lymar hi. Thanks for your question.
Maybe you can remove runtimePlatform element from task definition because provided values in this element are default values.
One of the possible reason of this error is that current version 1.13.13 of boto3 in the pipe does not support this element.
Regards, Igor
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.