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

4 lines
219 B
Bash
Raw Normal View History

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