Cloudflare Tunnel + AWS RDS Postgres

Hi There, is there a guide, video, anything that I can follow to setup Cloudflare Tunnel and AWS RDS. What I have done so far is setup a Tunnel in a Public EC2, that works fine, and configured an entry in the tunnel public hostname, using tcp://<db-hostname>:5432 , but I kind of stuck, I cannot really access this database using postgres clients... (Also using WARP)
5 Replies
berkinovish
berkinovish10mo ago
Hi @Sandor , did you ever manage to get this working?
reinsbrain
reinsbrain7mo ago
I also want to do the same. I have a bastion EC2 with cloudflared running (healthy)... not sure what to do about networking and how i would connect to RDS (postgres) database from a worker... i dont really want to use hyperdrive because it's only ever writing to the database so i have no need for any caching because never reading also, i don't think i would need Warp although i could be wrong there... @Sandor - did you have any luck?
HeavyDistortion
Hi, @Sandor I’m currently in the same situation as you were. Have you found a workaround or solution for this? Sorry for tagging you guys too but just curious if maybe yall had any luck with it? @reinsbrain @berkinovish
berkinovish
berkinovish5d ago
@HeavyDistortion Yeah, they have official support for this now: https://developers.cloudflare.com/hyperdrive/configuration/connect-to-private-database/
Cloudflare Docs
Connect to a private database using Tunnel · Hyperdrive
Hyperdrive can securely connect to your private databases using Cloudflare Tunnel and Cloudflare Access.
HeavyDistortion
Oh damn - was hoping yall found a way around without having to use hyperdrive. Doubt my company would wanna purchase yet another product 😅

Did you find this page helpful?