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

7 lines
225 B
Bash
Executable File

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