Tip:
Highlight text to annotate it
X
In this step, we will launch a Multi-AZ RDS instance.
When you create or modify your database instance to run as a Multi-AZ deployment,
Amazon RDS automatically provisions and maintains a synchronous
standby replica in a different Availability Zone.
Updates to your database instance are synchronously replicated
across Availability Zones to the standby
in order to keep both in sync and protect your latest database updates
against database instance failure.
During certain types of planned maintenance,
or in the unlikely event of database instance failure or Availability Zone failure,
Amazon RDS will automatically fail over to the standby
so that you can resume database writes and reads as soon as the standby is promoted.
Since the name record for your database instance remains the same,
your application can resume database operation
without the need for manual administrative intervention.
With Multi-AZ deployments, replication is transparent.
You do not interact directly with the standby,
and it cannot be used to serve read traffic.
To set up your Amazon RDS database, you need to do the following:
Create a database security group,
authorize your database instance, and launch a database instance.
To create a database security group,
at the top of the AWS Management Console, click the Amazon RDS tab.
In the Navigation pane, select US East from the region dropdown menu.
Click DB Security Groups in the navigation list on the left side of the window.
You will see a list of your current database security groups.
Click the Create DB Security Group button.
Type the name of the new database security group in the DB Security group text box.
For this example, type mydbsecuritygroup,
and then type a description for the new security group.
Click Yes, Create.
Now, you will need to grant your Amazon EC2 security group
access to your database security group.
To do this, select your newly created security group.
In the drop-down menu in the Connection Type column, select EC2 Security Group.
In the Details column, click webappsecuritygroup in the EC2 Security Group list.
You will need to know your account ID.
To locate your account ID, navigate to aws.amazon.com/account.
Click on security credentials, sign in, and go to the bottom of the page.
You can copy and paste your account ID to the AWS Account ID in the details column.
Make sure to remove any spaces and hyphens when you paste your account ID.
Click Add.
It may take a few moments to authorize.
After the security group is authorized, it will say Authorized in the Status column.
Next, we will launch a database instance.
From the Amazon RDS console, click Launch Database Instance
to start the Launch DB Instance Wizard.
First you will need to select your engine.
We will use MySQL community edition.
Click Select.
The Wizard continues to the DB Instance Details page.
Select general-public-license as your license model.
We will use the default MySQL version.
The DB Instance class defines the CPU and memory capacity of your db instance.
Select db.m1.small.
For Multi-AZ Deployment, select Yes.
For Auto Minor Version Upgrade, leave the default to Yes.
For Allocated Storage, type 5.
For the DB Instance Identifier, type mydbinstance.
For the Master User Name, use awsuser.
Master User Password will be mypassword.
You can use the Master User Name and Password to log on to your db instance
with all database privileges.
Click Continue.
On the next page, you will define additional configuration information
for your DB Instance.
Type mydb into the Database Name text box.
The Database Port will be set to 3306
Select mydbsecuritygroup for the Database Security Group.
Click Continue.
The Management Options page appears.
Use this page to specify backup and maintenance options
for your DB Instance.
For this example, we will use the default values.
Click Continue.
Check to ensure that all your options are entered correctly,
and then click Launch DB Instance.
A message will appear that says your DB Instance is being created.
The My DB Instances panel appears.
Your DB Instance appears in the list on this page with the status of CREATING
until your db instance is created and ready for use.
This can take a few minutes to complete.
For more information about Amazon RDS,
see the Amazon RDS User Guide.