DEV Community

Swathi Gunasekaran
Swathi Gunasekaran

Posted on

1

AWS Three-Tier Architecture

Architecture

Image description

Step:1

*Create IAM EC2 Instance Role *
-> Initially created S3 Bucket in the AWS console with the unique
name.
-> Move to the Role Creation

Image description

Step 2: Create VPC

Image description

Successfully VPC created!

Image description

Step 3: Create Subnets
As per the Architecture, Create a 6 Subnets where 2 public and 4 private subnets.

Image description

Successfully 6 subnets are created!

Image description

*Step 4: Create Internet Gateway *
To provide internet access to the public subnets in our VPC, we need to create an Internet Gateway and connect it to the VPC.

Image description

Attach the Internet Gateway to the VPC after creating the IG.

Step 5: NAT Gateway
To provide internet access to the private subnets in our VPC, we need to create an NAT Gateway and connect it to the VPC.
->Create VPC

Image description
->Type the Name of Gateway
->choose one of the public subnets
->allocate an Elastic IP
->Create gateway

Step 6: Create Route Tables

Image description

Image description

click on the Routes tab and Edit routes:

Image description

Edit subnet association

Image description
Save Association

Image description

create private route table

Image description

Edit route table

Image description

Image description

Created private 2nd route table

Image description

Create security Group
SG-1

Image description

Image description

SG-2:

Image description

SG-3:

Image description

SG-4:

Image description

SG- 5

Image description

Image description

Database Deployement
Subnet Groups

Image description
create db subnet groups

Image description

Image description

Image description

Database creation

Image description

Image description

Image description

Image description

Image description
Cleanup the db:

Image description
delete nat gateway

Image description

Image description
release ip

Image description

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free β†’

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay