Amazon Relational Database Service
User Guide (API Version 2014-10-31)

Step 1: Create an RDS DB Instance

In this step you create an Amazon RDS MySQL DB instance that maintains the data used by a web application.

Important

Before you begin this step, you must have a VPC with both public and private subnets, and corresponding security groups. If you don't have these, see Tutorial: Create an Amazon VPC for Use with an Amazon RDS DB Instance. Complete the steps in Create a VPC with Private and Public Subnets, Create Additional Subnets, Create a VPC Security Group for a Public Web Server, and Create a VPC Security Group for a Private Amazon RDS DB Instance.

To launch a MySQL DB instance

  1. Sign in to the AWS Management Console and open the Amazon RDS console at https://console.aws.amazon.com/rds/.

  2. In the top-right corner of the AWS Management Console, choose the region in which you want to create the DB instance. This example uses the US West (Oregon) region.

  3. In the navigation pane, choose Instances.

    If the navigation pane is closed, choose the menu icon at the top left to open it.

  4. Choose Create database to open the Select engine page.

  5. On the Select engine page, shown following, choose MySQL, and then choose Next.

    
                            Select engine
  6. On the Choose use case page, choose Dev/Test – MySQL, and then choose Next.

  7. On the Specify DB details page, shown following, set these values:

    • License model: Use the default value.

    • DB engine version: Use the default value.

    • DB instance class: db.t2.small

    • Multi-AZ deployment: No

    • Storage type: General Purpose (SSD)

    • Allocated storage: 20 GiB

    • DB instance identifier: tutorial-db-instance

    • Master username: tutorial_user

    • Master password: Choose a password.

    • Confirm password: Retype the password.

    
                            Specify DB details
  8. Choose Next and set the following values in the Configure advanced settings page:

    • Virtual Private Cloud (VPC): Choose an existing VPC with both public and private subnets, such as the tutorial-vpc (vpc-identifier) created in Create a VPC with Private and Public Subnets

      Note

      The VPC must have subnets in different availability zones.

    • Subnet group: The DB subnet group for the VPC, such as the tutorial-db-subnet-group created in Create a DB Subnet Group

    • Public accessibility: No

    • Availability zone: No Preference

    • VPC security groups: Choose an existing VPC security group that is configured for private access, such as the tutorial-db-securitygroup created in Create a VPC Security Group for a Private Amazon RDS DB Instance

      Remove other security groups, such as the default security group, by clicking the X associated with it.

    • Database name: sample

    Leave the default settings for the other options.

    
                        Configure Advanced Settings Panel
  9. To create your Amazon RDS MySQL DB instance, choose Create database.

  10. On the next page, choose View DB instances details to view your RDS MySQL DB instance.

  11. Wait for the DB instance status of your new DB instance to show as available. Then scroll to the Connect section, shown following.

    
                        DB instance details

    Make note of the endpoint and port for your DB instance. You will use this information to connect your web server to your RDS DB instance.

To make sure your RDS MySQL DB instance is as secure as possible, verify that sources outside of the VPC cannot connect to your RDS MySQL DB instance.

Next Step

Step 2: Create an EC2 Instance and Install a Web Server

On this page: