I am trying to establish a connection to a secondary, external database on Heroku (this is a PostgreSQL db running on AWS). I am trying to find the easiest and/or best way to do
You could change the database_url
of the heroku config
in the format shown below:
postgres://<user>:<password>@<server>:<port>/<db_name>
For example:
heroku config:set DATABASE_URL=postgres://myusername:mypassword@111.111.111.11:5542/myproject_production
Just make sure the firewall allows the external connection to RDS.