I am facing issue while describing ecs task definition via running thorugh bitbucket pipeline.
Issue i face is like below,
An error occurred (ClientException) when calling the DescribeTaskDefinition operation
command i use to execute via shell script in bitbucket pipeline 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
aws ecs register-task-definition --family ${TASK_FAMILY} --cpu 256 --memory 512 --network-mode awsvpc --requires-compatibilities "FARGATE" --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
But when i am running same commands from linux terminal its running.
Anyone face such kind of issue?
Thanks in advance.
jq -r
. – Furrow