Skip to content

Commit

Permalink
fix: edited descriptions and added tee
Browse files Browse the repository at this point in the history
  • Loading branch information
brivu committed Jun 10, 2022
1 parent b14dc92 commit cc14369
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/commands/run-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/jobs/run-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/run-task.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit cc14369

Please sign in to comment.