Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 5970

How to connect to AWS RDS on a private subnet? [closed]

$
0
0

I have a Load Balancer on public subnet connected to route 53. So external traffic connects to this Load Balancer. Behind this is an EC2 instance on a private subnet and also RDS postgres database on its own private subnet. All of these are on one single VPC. Everything works. However, I don't know how I can connect to the RDS database using any sql client for general viewing and trouble shooting.

Earlier I had the EC2 instance on a public subnet with a public IP and RDS connection was through EC2 as a bastion host. I recently moved the EC2 into private subnet to save cost (AWS charges for all public IP addresses now). The new setup works perfectly as far as functionality is concerned and is more secure as well. I can connect to the EC2 instance through SSH from my local machine using EC2 Instance Endpoint Connect. However, I am struggling to understand how do I connect to the RDS DB from my local machine. Or even from the EC2 instance if I can query the DB that will also be fine.

I tried to install Dbeaver tool on the EC2 instance. It installs but when I try to run it, it fails with multiple errors. I don't think it is supposed to work like this as I did not find any reference on the web anyone else trying to do this. EC2 is running Ubuntu.

Looking for some guidance on this.


Viewing all articles
Browse latest Browse all 5970

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>