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

4 lines
212 B
Bash
Raw Normal View History

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