Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

(AWS) Can't launch RDS in my chosen VPC

I'm following AWS's instructions Scenario 2: VPC with Public and Private Subnets and am having issues at the point I try to launch a DB server.

When I launch my instance, all is fine and I am able to assign it to my newly created VPC. However, when it comes to launch the RDS, the only VPC available (on step 4, configure advanced settings) is the default VPC (ie not the one I created as per their instructions).

Has anyone any idea about this or indeed how to resolve it?

like image 295
rix Avatar asked Jun 02 '14 14:06

rix


People also ask

Can RDS be in a VPC?

Amazon Virtual Private Cloud (Amazon VPC) makes it possible for you to launch AWS resources, such as Amazon RDS DB instances, into a virtual private cloud (VPC).

How do I transfer RDS to different VPC?

To move an Amazon RDS DB instance to a new VPC, you must change its subnet group. Before you move the RDS DB instance to a new network, configure the new VPC. This configuration includes the security group inbound rules, the subnet group, and the route tables.

Can't connect to AWS RDS database?

Troubleshoot database level issuesBe sure that you're using the correct user name and password to access the instance from your DB client. Be sure that the user has the database permissions to connect to the DB instance. Check for any resource throttling in Amazon RDS, such as CPU or memory contention.


1 Answers

RDS requires a little more setup than an EC2 instance if you want to launch it within a VPC.

Specifically, you need to create:

  • a DB subnet group within the VPC
  • a VPC security group for the RDS instance

The documentation is a little buried in the AWS RDS documents. It can be found here:

Creating a DB Instance in a VPC

like image 95
Brian Knight Avatar answered Sep 29 '22 14:09

Brian Knight