Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,462,872
Community Members
 
Community Events
176
Community Groups

How to specify runtimePlatform in task definition file for BitBucket pipeline

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?

1 answer

0 votes

@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

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events