Created
September 20, 2018 15:05
-
-
Save bblanchon/00ee5e3b129662e2b9a14ba9a0160a97 to your computer and use it in GitHub Desktop.
Connection to PostgreSQL from EC2 instance
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
PGPASSWORD="${RDS_PASSWORD}" psql -d "${RDS_DB_NAME}" -U "${RDS_USERNAME}" -h "${RDS_HOSTNAME}" -p "${RDS_PORT}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment