100% found this document useful (1 vote)
206 views5 pages

Lab01: Create Amazon Aurora Instance: Overview

This document provides instructions to create an Amazon Aurora database instance and connect to it from an EC2 Windows instance. It describes creating the Aurora instance, connecting to the EC2 instance, and then connecting to the Aurora database using MySQL Workbench.

Uploaded by

Ramkumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
206 views5 pages

Lab01: Create Amazon Aurora Instance: Overview

This document provides instructions to create an Amazon Aurora database instance and connect to it from an EC2 Windows instance. It describes creating the Aurora instance, connecting to the EC2 instance, and then connecting to the Aurora database using MySQL Workbench.

Uploaded by

Ramkumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Build on Amazon Aurora

Lab01: Create Amazon Aurora Instance

Overview:
This lab guide introduces you to Amazon Aurora. This lab provides you with basic understanding of using Amazon Aurora.
You will be shown the steps to create an Amazon Aurora instance and then connect to it.

Lab Instructions:

Task 01: Create an Amazon Aurora Instance.

In this task you will create Amazon Aurora Instance.

1. Log in to your AWS console and go to RDS landing page. From the left navigation pane, click Databases.
2. On the Database page, click Create Database from right corner.
3. By default, Standard Create and Amazon Aurora would be selected for creation method and engine
type. If they not selected, please select Standard Create and Amazon Aurora.
4. For Edition, select Aurora with MySQL compatibility.
5. For Version, select Aurora (MySQL)-5.6.10a.
6. For Database Location, select Regional

7. For Database features, keep defaults.


8. In Templates section, choose Dev/Test.
9. In the Settings section, configure the following:
Page 1 of 5

© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark
Build on Amazon Aurora

Lab01: Create Amazon Aurora Instance

a. DB Instance Identifier: aurora


b. Master username: master
c. Master Password: master123
d. Confirm Password: master123
10. For DB instance size and Availability section, configure following
a. Memory Optimized classes.
b. DB Instance Class: db.r5.xlarge.
c. Multi-AZ deployment: Don’t create Aurora replica
d. In this lab, you will only be creating a standalone database. In a subsequent lab, this database
will be converted to Multi-AZ setup.

11. In the Connectivity section, configure the following


a. VPC: Select the VPC created by Event engine. (it would be similar to mod-xxxxx )
b. Subnet group: mod-xxxx-dbsubnetgroup-xxxxxx
c. Leave Public accessibility to No.
d. VPC Security groups:
i. Choose existing VPC security groups.
ii. From the list select, mod-xxxx-DBSecurityGroup-xxxxxx
e. Leave rest options as default in this section.

Page 2 of 5

© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark
Build on Amazon Aurora

Lab01: Create Amazon Aurora Instance

12. For Database authentication, choose Password authentication.


13. In Additional configuration section, choose following:
a. Initial database name: targetdb
b. Uncheck “Enable encryption”.
c. Leave Failover and Backup as default selections.
d. Choose “Enable Backtrack,” and set “Target Backtrack window” to 2 hours.
e. Leave Performance Insights sections as default selections.
f. Uncheck “Enable enhanced monitoring” for this lab
g. In the Log exports section select all the log types to be published to Cloudwatch logs.
h. Uncheck “Enable auto minor version upgrade”.
i. Keep deletion protection disabled for this lab. In production it’s recommended to have this
enabled.
14. Scroll to the bottom of the screen, then click Create database.

Your Aurora RDS instance is in process of launching. This RDS instance can take up to 5-10 minutes to
launch.
15. Once the instance is available, save following information from database details page of newly created
Aurora instance:
a. Endpoint: Save the writer endpoint from “Connectivity & security” tab on databases details
page.
b. Port: 3306
c. Master username: master
d. Password: master123
e. DB Identifier: aurora
f. Database Name: targetdb
Page 3 of 5

© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark
Build on Amazon Aurora

Lab01: Create Amazon Aurora Instance

Task 02: Connect to Amazon EC2 Windows Instance.

1. Retrieve the ssh-key for SCT EC2 instance


a. Navigate to Systems Manager
b. Under “Application Management”, click Parameter store
c. Open “SCTWindowsHostKey” parameter
d. Click “show” in the value section to reveal the ssh-key pair.
e. Copy the value to be used in next step.
2. Log in to the SCT host using RDP and the information provided in the stack Output section. The username to
connect as is “Administrator”. You will need to open a new tab and go to the EC2 Console to decrypt the
password using the KeyPair copied from previous step.
a. Go to the EC2 console.
b. Find and select the ec2 instance you just created. The name should contain your stack name.
c. Click the “connect” button at the top of the console.
d. Supply the keypair when prompted to do so.
e. Launch RDP and connect as “\Administrator” using the password just obtained.

Task 03: Connect to your Amazon Aurora Instance.

1. From the taskbar, choose MySQL Workbench


2. Right next to “MySQL connections” on home page, click +.
3. Connection Name: auroradb.
4. Fill in the hostname, port, username and password details from the information saved in last step of
task 01 of this lab.
5. For default schema, leave blank.

6. Click Test Connection.

Page 4 of 5

© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark
Build on Amazon Aurora

Lab01: Create Amazon Aurora Instance

7. Click “OK” once the connection is successful.


8. On home screen of Mysql workbench, connection to aurora database would be available to connect.

9. Click the connection icon to connect to Aurora MySQL instance.

You have now successfully created an Aurora MySQL cluster and connected to it. Browse the database
structure, run a few queries, and check the console. Notice things like the number of connections, system
metrics, etc. Notice the endpoints created for you. Connect to each, and try to run a write query on the
reader endpoint, note the output.
Explore the console. Note the “Recommendations” section. This will automatically make recommendations
based on best practices, usage, and performance data.
Browse the parameter groups. Notice the difference between the cluster parameter group and the parameter
group. Why are they different?
Look at Events. This is where you will see events relative to your Aurora cluster, like creation, scaling events,
etc. Look in to event subscriptions, research how they could be used.

Page 5 of 5

© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark

You might also like