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

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more