terraform.aws-baseline-infra/modules/util/resource-list/list-emr.sh

4 lines
198 B
Bash
Executable File

#!/bin/bash
RESULTS=$(aws emr list-clusters --active --query Clusters[*].ClusterArn --output text --no-cli-pager | sed 's/\t/\n/g' | sort | xargs)
jq -n --arg result "$RESULTS" '{"result":$result}'