How can I find the VPC and subnet for my RDS database?

0
12
Asked By CuriousCoder92 On

Hey everyone! I'm trying to figure out which VPC and subnet the development version of my RDS database is deployed in. I've looked everywhere and it seems like there's no straightforward way to find this information. When I check the database UI, I only see details about connected compute resources and security groups, but nothing about the specific VPC or subnet. I saw suggestions online about checking the ENIs, but without a proper description, it's hard to know which resource each ENI belongs to. I even tried using the AWS CLI with the 'aws rds describe-db-instances' command, but it only gives me a list of subnets where the database *could* be deployed, not its actual subnet. Am I missing something? Is there truly no way to determine the exact subnet for my RDS database?

4 Answers

Answered By NetworkNinja88 On

You can check the subnet group name in the RDS configuration. Look for it on the left sidebar and open it. There, you should find a list of subnets associated with your RDS database.

Answered By RDSWhizKid On

If you go to RDS, select your DB, and check under 'Connectivity and Security' > 'Endpoints', all the relevant info should be listed there.

Answered By CloudExplorer99 On

Another option is to ping the database. If you find out what IP it resolves to, that can help you identify its subnet.

Answered By TechGuru21 On

These details are pretty hidden in the console nowadays. What you can do is add the 'DB subnet group name' column to your cluster filter table. Once you have that name, head to the 'subnet groups' tab on the left, and you’ll see the VPC and subnets it can launch in. Unfortunately, there's no clear way to tell exactly which subnet it's currently using, just an educated guess based on the availability zones.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.