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


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

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

106 views 2 4
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