Skip to content

Commit 1016e81

Browse files
authored
Merge pull request #32 from toricls/force-aws-cli-json-output
Force AWS CLI output format to json
2 parents 81c776d + 459b1e7 commit 1016e81

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

check-ecs-exec.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ set -euo pipefail
4848
# e.g. AWS_CLI_BIN=aws-v1 ./check-ecs-exec.sh YOUR_ECS_CLUSTER_NAME YOUR_ECS_TASK_ID
4949
AWS_CLI_BIN=${AWS_CLI_BIN:-aws}
5050

51+
# Force AWS CLI output format to json to use jq to parse its output
52+
export AWS_DEFAULT_OUTPUT=json
53+
5154
# Colors for output
5255
COLOR_DEFAULT='\033[0m'
5356
COLOR_RED='\033[0;31m'

0 commit comments

Comments
 (0)