Last active
December 6, 2016 00:58
-
-
Save tfentonz/736f5a09cd62efffcd80a62d47841216 to your computer and use it in GitHub Desktop.
Ouput array of DB instances with PostgreSQL engine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| aws rds describe-db-instances --query 'DBInstances[].{DBName:DBName,Engine:Engine,EngineVersion:EngineVersion}' | | |
| jq '[.[] | select(.Engine == "postgres") | {db_name:.DBName,engine:.Engine,engine_version:.EngineVersion}]' | |
| exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment