This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Requies JSON as the output format and "jq" commandline tool | |
# If task runs successfuly, exits 0 | |
run_result=$(aws ecs run-task \ | |
--cluster ${CLUSTER} \ | |
--task-definition ${TASK_DEFINITION} \ | |
--launch-type EC2 \ | |
--overrides "${OVERRIDES}") | |
echo ${run_result} | |
container_arn=$(echo $run_result | jq -r '.tasks[0].taskArn') | |
aws ecs wait tasks-stopped \ |