title: An error occurred (ClientException) when calling the DescribeTaskDefinition operation
body: <p>I am facing issue while describing ecs task definition via running thorugh bitbucket pipeline.</p>
  <p>Issue i face is like below,</p>
  <p>An error occurred (ClientException) when calling the DescribeTaskDefinition operation</p>
  <p>command i use to execute via shell script in bitbucket pipeline as below,</p>
  <pre><code>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='\&quot;${DOCKER_IMAGE}\&quot; \
                                                             &gt; /tmp/tmp.json
  </code></pre>
  <pre><code>aws ecs register-task-definition --family ${TASK_FAMILY} --cpu 256 --memory 512 --network-mode awsvpc --requires-compatibilities &quot;FARGATE&quot; --task-role-arn arn:aws:iam::xxxxxxx:role/ECSTaskExecutionRole --execution-role-arn arn:aws:iam::xxxxxxx:role/ECSTaskExecutionRole --cli-input-json file:///tmp/tmp.json
  </code></pre>
  <p><a href="https://i.stack.imgur.com/R3EPb.png" rel="nofollow noreferrer">issue in bitbucket</a></p>
  <p>But when i am running same commands from linux terminal its running.</p>
  <p>Anyone face such kind of issue?</p>
  <p>Thanks in advance.</p>