Menu

Project 1: 3 Tier Web Architecture Project with Terraform
📰

Project 1: 3 Tier Web Architecture Project with Terraform

DEV Community: terraform·Ulhas Narwade·about 8 hours ago
#7Mew2wDv
Long article (805 words) — no AI summary yet.
Reading 0:00
15s threshold

Part 1 of 12 — 12 Hands-On AWS Projects

Introduction

Every website you use runs on layers. A user opens a page, a web server answers, an app server does the work, and a database stores the data. In this project I will build that classic 3-tier setup on AWS, and I will build it with Terraform so the whole thing is code I can rebuild in minutes. By the end, a load balancer will share traffic across my servers, and my database will sit safely in a private network where the internet cannot reach it directly.

What you will build

A VPC with public and private subnets across two availability zones

An internet gateway and a NAT gateway for controlled internet access

An Application Load Balancer in front of two EC2 instances

An RDS MySQL database in a private subnet

Everything created with Terraform code, not clicks in the console

Architecture

Traffic flows from the internet through the load balancer to the web and app servers, and only the app servers can reach the database.

Prerequisites

An AWS account…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.