Few days back, I was trying to instantiate an RDS instance in Private subnet of a non-default VPC ( Custom VPC ). But unfortunately the launch wizard was not letting me to choose the new non-default VPC.

This problem can put you in worse situation in security terms as the wizard will not let you choose your respective VPC and hence you can not choose your Private subnet, and it can be a threat to data security.

Lets go through the solution for this problem.

It was found that the RDS launch wizard needs a subnet group inside when it launches a DB instance and by default it chooses a ‘default’ public subnet group of Default VPC. So, If you don’t have any custom Subnet group, you will have Default VPC’s Public -facing Subnet, launching your DB instance.

So, lets create a new custom Subnet group

1.

Go to RDS Dashboard by clicking Services –> RDS.

Now , we have to create a Subnet Group. Click on ‘Subnet Group’ option given on the Dashboard. Here you can see a default Subnet group named ‘default’.

Now click on ‘Create DB Subnet Group’ to create new Subnet Group.

2.

In DB Subnet Group Wizard, give basic Subnet information as Name and Description for your custom DB Subnet Group.

Choose a VPC ID from drop down menu showing all the VPC in current region. Click on ‘add all the subnets’ link to display all subnets available in chosen VPC.

Now, choose one availability zone to select a Subnet ID to which this DB Subnet Group will be associated.

Click ‘Yes, Create’ button to create this DB subnet group.

3.

Your new DB Subnet Group will be created in a moment . You can check it in Subnet Group panel.