Skip to content

Instantly share code, notes, and snippets.

View arrobeusa's full-sized avatar

Rob Rotarius arrobeusa

View GitHub Profile
@joerx
joerx / list-rds-instances.sh
Created June 20, 2018 02:37
List RDS instances, select some fields and render as CSV with aws cli, bash and jq
#!/bin/sh
if [ "$INSTANCE" == "" ]; then
CMD="aws rds describe-db-instances"
else
CMD="aws rds describe-db-instances --db-instance-identifier=$INSTANCE"
fi
echo '"DBInstanceIdentifier","DBInstanceStatus","DBInstanceClass"'