Troubleshoot AWS Database Remote Connectivity

Connecting to AWS database remotely, e.g. from your local computer, can be tricky sometimes, and it involves complex VPC(Virtual Private Cloud) conception, this tutorial will help you walk through the steps to set up AWS database remote connectivity without the need for understanding of VPC.

Anatomy of a VPC

aws-vpc-concept-model
* source:
Amazon VPC for On-Premises Network Engineers – Part 1

The above picture shows the VPC structure(if you want to know more about it, read this), the instance is the database we are configuring, from inside to outside, it is surrounded by database -> security group -> subnet -> route table -> availability zone -> VPC -> internet gateway. To make sure we can reach through to the database, we need to check all the parts mentioned.

Set database "Publicly accessible"

Check if your database instance is "Publicly accessible", if not, change the Publicly Accessible property to Yes:

Assure security groups' inbound rules allow your IP

aws-rds-connect-5
aws-rds-connect-6

Associate the instance with public subnets

Make sure the database instance's subnets in the availability zone is associated with public subnets. Public subnet are subnet that has a direct route to an internet gateway and resources in a public subnet can access the public internet.

Now, you should connect to your AWS database remotely, if you still can't connect to you database instance, please check AWS doc: Troubleshooting for Amazon RDS for more information.

Article Recommendation

ссс