diff --git a/src/commands/run-task.yml b/src/commands/run-task.yml index 68141d34..d5af8973 100755 --- a/src/commands/run-task.yml +++ b/src/commands/run-task.yml @@ -115,7 +115,7 @@ parameters: default: '' run-task-output: description: | - Specifies a local json file to save the output logs from the aws ecs run-task command. This will enable users to extract information like task-arn's, task-id's and more from the output. + Specifies a local json file to save the output logs from the aws ecs run-task command. Use tools like JQ to read and parse this information such as "task-arns" and "task-ids" type: string default: '' steps: diff --git a/src/jobs/run-task.yml b/src/jobs/run-task.yml index f93f55b8..3a87c9ec 100755 --- a/src/jobs/run-task.yml +++ b/src/jobs/run-task.yml @@ -151,7 +151,7 @@ parameters: default: "" run-task-output: description: | - Specifies a local json file to save the output logs from the aws ecs run-task command. This will enable users to extract information like task-arn's, task-id's and more from the output. + Specifies a local json file to save the output logs from the aws ecs run-task command. Use tools like JQ to read and parse this information such as "task-arns" and "task-ids" type: string default: '' steps: diff --git a/src/scripts/run-task.sh b/src/scripts/run-task.sh index d1d37aad..77fa3bfa 100644 --- a/src/scripts/run-task.sh +++ b/src/scripts/run-task.sh @@ -90,7 +90,7 @@ echo "Setting --cluster" set -- "$@" --cluster "$ECS_PARAM_CLUSTER_NAME" if [ -n "${ECS_PARAM_RUN_TASK_OUTPUT}" ]; then - aws ecs run-task "$@" >> "${ECS_PARAM_RUN_TASK_OUTPUT}" + aws ecs run-task "$@" | tee "${ECS_PARAM_RUN_TASK_OUTPUT}" else aws ecs run-task "$@" fi