Skip to content

vishnu029/aws-terraform-infra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Infrastructure with Terraform

Project Overview

This project deploys AWS infrastructure using Terraform modules including:

  • VPC with public/private subnets
  • Internet Gateway and Route Tables
  • EC2 instance in public subnet
  • RDS MySQL database in private subnet

Architecture

Internet Gateway
       |
   Public Subnet (EC2)
       |
   Private Subnet (RDS)

Prerequisites

  • AWS CLI configured
  • Terraform installed
  • AWS key pair created

Deployment

1. Initialize Terraform

terraform init

2. Plan Deployment

terraform plan

3. Apply Configuration

terraform apply

4. Get Outputs

terraform output

Key Outputs

  • ec2_public_ip: Public IP of EC2 instance
  • rds_endpoint: Database connection endpoint
  • vpc_id: VPC identifier

Cleanup

terraform destroy

Module Structure

  • modules/vpc/: VPC, subnets, routing
  • modules/ec2/: EC2 instance and security groups
  • modules/rds/: RDS database and subnet group

About

AWS Infra with Terraform – IaC to deploy VPC, EC2, RDS, and Load Balancer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages