How do you check from cli or using a shell script if the task exists?
The documentation is confusing. Is using the --task-definition option as family.
The command
TASK=$(aws ecs describe-task-definition --task-definition ${TASK_NAME}
it errors saying
An error occurred (ClientException) when calling the DescribeTaskDefinition operation: Unable to describe task definition.
Any ideas?