0% found this document useful (0 votes)
15 views9 pages

09 CC Experiment-12

The document provides instructions on creating an RDS database instance on AWS. It involves creating a security group, DB subnet group, and then launching a MySQL database instance in multiple availability zones. It also covers configuring a web application to connect to the new database.

Uploaded by

Ajay Rank
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views9 pages

09 CC Experiment-12

The document provides instructions on creating an RDS database instance on AWS. It involves creating a security group, DB subnet group, and then launching a MySQL database instance in multiple availability zones. It also covers configuring a web application to connect to the new database.

Uploaded by

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

Marwadi University

Faculty of Technology
Department of Information and Communication Technology
Subject: Cloud Computing Aim: Create RDS using AWS.
Experiment No: 12 Date: 16/04/2024 Enrolment No: 92110133014

Aim: Create RDS Using AWS

Task 1: Create a Security Group for the RDS DB Instance


In this task, you will create a security group to allow your web server to access your RDS DB
instance. The security group will be used when you launch the database instance.

1. In the AWS Management Console, on the Services menu, choose VPC.


2. In the left navigation pane, choose Security Groups.
3. Choose Create security group and then configure:
a. Security group name: DB Security Group
b. Description: Permit access from Web Security Group
c. VPC: Lab VPC

4. You will now add a rule to the security group to permit inbound database requests.
5. In the Inbound rules pane, choose Add rule
The security group currently has no rules. You will add a rule to permit access from the
Web Security Group.
6. Configure the following settings:
a. Type: MySQL/Aurora (3306)
b. CIDR, IP, Security Group or Prefix List: Type sg and then select Web
Security Group.
Marwadi University
Faculty of Technology
Department of Information and Communication Technology
Subject: Cloud Computing Aim: Create RDS using AWS.
Experiment No: 12 Date: 16/04/2024 Enrolment No: 92110133014

7. This configures the Database security group to permit inbound traffic on port 3306 from
any EC2 instance that is associated with the Web Security Group.
8. Choose Create security group
You will use this security group when launching the Amazon RDS database.

1. Task 2: Create a DB Subnet Group


9. In this task, you will create a DB subnet group that is used to tell RDS which subnets can
be used for the database. Each DB subnet group requires subnets in at least two
Availability Zones.
10. On the Services menu, choose RDS.
11. In the left navigation pane, choose Subnet groups.
If the navigation pane is not visible, choose the menu icon in the top-left corner.
12. Choose Create DB Subnet Group then configure:
a. Name: DB-Subnet-Group
b. Description: DB Subnet Group
c. VPC: Lab VPC

13. Scroll down to the Add Subnets section.


Marwadi University
Faculty of Technology
Department of Information and Communication Technology
Subject: Cloud Computing Aim: Create RDS using AWS.
Experiment No: 12 Date: 16/04/2024 Enrolment No: 92110133014

14. Expand the list of values under Availability Zones and select the first two zones: us-east-
1a and us-east-1b.
15. Expand the list of values under Subnets and select the subnets associated with the
CIDR ranges 10.0.1.0/24 and 10.0.3.0/24.
These subnets should now be shown in the Subnets selected table.
16. Choose Create
You will use this DB subnet group when creating the database in the next task.

2. Task 3: Create an Amazon RDS DB Instance


17. In this task, you will configure and launch a Multi-AZ Amazon RDS for MySQL database
instance.
18. Amazon RDS Multi-AZ deployments provide enhanced availability and durability for
Database (DB) instances, making them a natural fit for production database workloads.
When you provision a Multi-AZ DB instance, Amazon RDS automatically creates a primary
DB instance and synchronously replicates the data to a standby instance in a different
Availability Zone (AZ).
19. In the left navigation pane, choose Databases.
Marwadi University
Faculty of Technology
Department of Information and Communication Technology
Subject: Cloud Computing Aim: Create RDS using AWS.
Experiment No: 12 Date: 16/04/2024 Enrolment No: 92110133014

20. Choose Create database


If you see Switch to the new database creation flow at the top of the screen, please
choose it.
21. Select MySQL.
22. Under Settings, configure:
a. DB instance identifier: lab-db
b. Master username: main
c. Master password: lab-password
d. Confirm password: lab-password
Marwadi University
Faculty of Technology
Department of Information and Communication Technology
Subject: Cloud Computing Aim: Create RDS using AWS.
Experiment No: 12 Date: 16/04/2024 Enrolment No: 92110133014

23. Under DB instance class, configure:


a. Select Burstable classes (includes t classes).
b. Select db.t3.micro

24. Under Storage, configure:


a. Storage type: General Purpose (SSD)
b. Allocated storage: 20

25. Under Connectivity, configure:


a. Virtual Private Cloud (VPC): Lab VPC
26. Under Existing VPC security groups, from the dropdown list:
a. Choose DB Security Group.
b. Deselect default.
Marwadi University
Faculty of Technology
Department of Information and Communication Technology
Subject: Cloud Computing Aim: Create RDS using AWS.
Experiment No: 12 Date: 16/04/2024 Enrolment No: 92110133014

27. Expand Additional configuration, then configure:


a. Initial database name: lab

b. Uncheck Enable automatic backups.


c. Uncheck Enable encryption
d. Uncheck Enable Enhanced monitoring.
Marwadi University
Faculty of Technology
Department of Information and Communication Technology
Subject: Cloud Computing Aim: Create RDS using AWS.
Experiment No: 12 Date: 16/04/2024 Enrolment No: 92110133014

28. This will turn off backups, which is not normally recommended, but will make the
database deploy faster for this lab.
29. Choose Create database
Your database will now be launched.
If you receive an error that mentions "not authorized to perform: iam:CreateRole", make
sure you unchecked Enable Enhanced monitoring in the previous step.
30. Choose lab-db (choose the link itself).
You will now need to wait approximately 4 minutes for the database to be available. The
deployment process is deploying a database in two different Availability zones.
While you are waiting, you might want to review the Amazon RDS FAQs or grab a cup of
coffee.
31. Wait until Info changes to Modifying or Available.
32. Scroll down to the Connectivity & security section and copy the Endpoint field.
It will look similar to: lab-db.cggq8lhnxvnv.us-west-2.rds.amazonaws.com
33. Paste the Endpoint value into a text editor. You will use it later in the lab.

3. Task 4: Interact with Your Database


34. In this task, you will open a web application running on your web server and configure it
to use the database.

35. To copy the WebServer IP address, choose on the Details drop down menu above these
instructions, and then choose Show.
36. Open a new web browser tab, paste the WebServer IP address and press Enter.
The web application will be displayed, showing information about the EC2 instance.
37. Choose the RDS link at the top of the page.
You will now configure the application to connect to your database.
38. Configure the following settings:
Marwadi University
Faculty of Technology
Department of Information and Communication Technology
Subject: Cloud Computing Aim: Create RDS using AWS.
Experiment No: 12 Date: 16/04/2024 Enrolment No: 92110133014

a. Endpoint: Paste the Endpoint you copied to a text editor earlier


b. Database: lab
c. Username: main
d. Password: lab-password
e. Choose Submit

39. A message will appear explaining that the application is running a command to copy
information to the database. After a few seconds the application will display an Address
Book.

The Address Book application is using the RDS database to store information.

40. Test the web application by adding, editing and removing contacts.
The data is being persisted to the database and is automatically replicating to the second
Availability Zone.
Marwadi University
Faculty of Technology
Department of Information and Communication Technology
Subject: Cloud Computing Aim: Create RDS using AWS.
Experiment No: 12 Date: 16/04/2024 Enrolment No: 92110133014

Conclusion:

->At the end of this Lab, I learned about how we can create relational databases in AWS, what
are settings that we need to configure,and
->Also, what are the important configuration that we need to save for the result we want.

You might also like