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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

issue in describe ecs task definition Edited

Hello ,


i am getting below issue in bitbucket pipeline,


An error occurred (ClientException) when calling the DescribeTaskDefinition operation: Unable to describe task definition.


command i used to ran is as below,





LATEST_TASK_DEFINITION=$(aws ecs describe-task-definition --task-definition ${TASK_FAMILY})


echo $LATEST_TASK_DEFINITION \ | jq '{containerDefinitions: .taskDefinition.containerDefinitions, volumes: .taskDefinition.volumes}' \ | jq '.containerDefinitions[0].image='\"${DOCKER_IMAGE}\" \ > /tmp/tmp.json

cat /tmp/tmp.json

aws ecs register-task-definition --family ${TASK_FAMILY} --cpu 256 --memory 512 --network-mode awsvpc --requires-compatibilities "FARGATE" --task-role-arn arn:aws:iam::xxxxxx:role/ECSTaskExecutionRole --execution-role-arn arn:aws:iam::xxxx:role/ECSTaskExecutionRole --cli-input-json file:///tmp/tmp.json



but when i am running same command from terminal manually its working fine.

please help me with this where is issue?


Thanks in advance.

1 answer

0 votes
Caroline R Atlassian Team Jul 07, 2021

Hi, @Hardik Patel! Welcome to the community! 

I saw you created a ticket with our support related to the same question, so to avoid any possible misunderstandings or miscommunication that may arise from discussing the same matter on two different platforms, let’s focus on the ticket instead.

Feel free to share the resolution here to help other community members that may have the same issue. 

Kind regards,

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket Pipelines

Bitbucket Pipelines Runners is now in open beta

We are excited to announce the open beta program for self-hosted runners. Bitbucket Pipelines Runners is available to everyone. Please try it and let us know your feedback. If you have any issue...

3,650 views 63 19
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you