Last active
April 13, 2017 00:11
-
-
Save jonyt/69e486c95c26f4dd6a3c to your computer and use it in GitHub Desktop.
How to connect a Heroku application to an Amazon RDS Postgresql instance
This file contains 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
Download the certificate with: | |
`wget -O config/rds-combined-ca-bundle.pem http://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem` | |
Then connect with: | |
`postgres://user:password@amazon-host/db_name?sslmode=require&sslrootcert=config/rds-combined-ca-bundle.pem` | |
References: | |
http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html#PostgreSQL.Concepts.General.SSL | |
https://github.com/jeremyevans/sequel/issues/897 | |
http://www.postgresql.org/docs/9.3/static/libpq-connect.html#LIBPQ-CONNECT-SSLROOTCERT | |
http://dba.stackexchange.com/questions/77811/how-to-connect-to-an-amazon-postgresql-database-using-ssl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
💪