Skip to content

Commit f0b76d0

Browse files
committed
doc: Add manual documentation.
1 parent f1aec94 commit f0b76d0

File tree

4 files changed

+31
-0
lines changed

4 files changed

+31
-0
lines changed

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
## Objectives
2+
To design and construct an Amazon Virtual Private Cloud (VPC) architecture that includes an EC2 instance within a public subnet and a database instance within a private subnet
3+
4+
Problem Statement and Motivation
5+
6+
Real-Time Scenario:
7+
8+
James, a systems engineer at a startup company, is tasked with developing a web application with a secure, robust, and scalable backend database.
9+
10+
The company plans to utilize AWS RDS for the database, while the application will be deployed on an EC2 instance.
11+
12+
James must ensure a secure VPC setup where the EC2 instance resides in the public subnet and the RDS DB instance in a private subnet.
13+
14+
Problem Statement and Motivation
15+
16+
Expected Solution:
17+
18+
As a cloud architect, your objective is to assist James in developing an AWS VPC that hosts both an EC2 instance and a database instance.
19+
20+
The EC2 instance, serving the web application, should be placed in a public subnet, while the DB instance should be secured in a private subnet.
21+
22+
You are expected to provide step-by-step instructions for creating and configuring these AWS resources, ensuring system security, reliability, and accessibility.
23+
24+
25+
## Solution
26+
![Image](https://github.com/huyphamch/terraform-aws-create-web-rds/blob/master/manual/Project1.drawio.png)
27+
<br />My solution is to create a VPC with two Amazon EC2 instances in different availability zones and separate public subnets in a region.
28+
Then the RDS database supporting multi availability zones is created in a private subnet to only allow data access from the EC2 instances within the security group.
29+
Http requests a forwarded from the Internet Gateway to the EC2 instances which can access the data from the RDS database and send the response via Internet Gateway to the client.
30+
31+
<br />The manual steps to achieve the same result using the AWS management console are documented [here](https://github.com/huyphamch/terraform-aws-create-web-rds/blob/master/manual/Creating a VPC with Database and EC2 Instances.pdf)
1.35 MB
Binary file not shown.
1.03 MB
Binary file not shown.

manual/Project1.drawio.png

101 KB
Loading

0 commit comments

Comments
 (0)