- Spin up an instance that has a public ip, and can talk to the internal database.
-
SSH into the instance, and verify that you can connect to the database, for postgres
-
Install HA Proxy
-
Add haproxy config to proxy postgres, change DB IP/HOSTNAME to the IP/HOSTNAME of your db, replace /etc/haproxy/haproxy.cfg with the following
-
Enable and start haproxy
-
- Add a security rule that allows incoming traffic on port 5432 from the Julius IPs, you can view the IPs at the bottom of the page here: <https://julius.ai/data-connectors\>
- Try connecting Julius to the public ip of your bastion, it should proxy to your database and let you connect now.