Skip to content

About

Terraform project that provisions an AWS VPC with public subnets, EC2 web servers behind an Application Load Balancer, and an S3 bucket for storage.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Terraform Application Load Balancer Project

This project provisions a highly available web application infrastructure on AWS using Terraform.
It creates a custom VPC, public subnets across multiple Availability Zones, EC2 web servers, an Application Load Balancer (ALB), and supporting networking resources.

The infrastructure is fully automated and reproducible using Infrastructure as Code (IaC).


📌 Architecture Overview

The deployed architecture includes:

  • Custom VPC (10.0.0.0/16)
  • Two public subnets in different Availability Zones
  • Internet Gateway for public access
  • Route Table with outbound internet routing
  • Security Group allowing:
    • HTTP (80)
    • SSH (22)
  • Two EC2 web servers
    • Bootstrapped via user_data
  • Application Load Balancer
    • Distributes traffic across EC2 instances
  • Target Group & Listener
  • S3 Bucket for storage
  • Terraform Outputs
    • Load Balancer DNS name

🧱 Architecture Diagram

AWS-Terraform


🚀 Getting Started

Prerequisites

Ensure you have the following installed and configured:

  • Terraform ≥ 1.x
  • AWS CLI
  • An AWS account
  • AWS credentials configured via:
    aws configure

Deployment Steps

  1. Clone the repository
git clone https://github.com/SamyogGhimire/Terraform-AWS-Project.git

cd Terraform-AWS-Project
  1. Initialize Terraform
terraform init
  1. Validate Configuration
terraform validate
  1. Review Execution plan
terraform plan
  1. Apply infrastructure
terraform apply
  1. Access the application Use the load_balancer_dns output in your browser.

Destroy Infrastructure

To remove all created AWS resources:

terraform destroy

Project Structure

.
├── main.tf
├── userdata.sh
├── userdata1.sh
├── image.png
└── README.md

About

Terraform project that provisions an AWS VPC with public subnets, EC2 web servers behind an Application Load Balancer, and an S3 bucket for storage.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages