terraform.aws-baseline-infra/examples/external-data-source/list-rds-instances.sh

4 lines
172 B
Bash
Raw Permalink Normal View History

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