Skip to content

marmila/two-tier-architecture-aws-using-terraform

 
 

Repository files navigation

Two-Tier AWS Architecture using Terraform

Project Description

This project aims to create a robust highily available web application infrastructure using a two-tier architecture on Amazon Web Services (AWS). The architecture comprises a web tier that handles user requests and a database tier for data storage. I leveraged Terraform for Infrastructure as Code (IaC) to provision and manage AWS resources efficiently.

Architectural Diagram

architectural-diagram

Key Features

  • Infrastructure as Code (IaC): Leveraging Terraform for defining and provisioning the entire infrastructure, ensuring consistency and repeatability.
  • High Availability: Utilized multiple Availability Zones (AZs), the application is designed for high availability, minimizing downtime in case of failures.
  • Security: Implementing security best practices, such as network ACLs, security groups, and encryption, to protect data and resources.
  • Database Management: A managed database service Amazon RDS is used to store and manage application data, providing reliability and data durability.
  • Load Balancing: Employing Elastic Load Balancers (ELBs) to distribute incoming traffic across multiple web servers, optimizing resource utilization.

Prerequistes

  1. Basic knowledge of AWS services and concepts.
  2. Familiarity with Terraform and infrastructure as code principles.
  3. An AWS account with appropriate permissions.
  4. An IDE of your Choice , I would suggest VS Code Editor .

Terraform Configuration

The Terraform configuration files with(*.tf) in this repository define the AWS resources and settings required to create the two-tier architecture AWS infrastructure.

Steps:

Step No Document Link
1 Setting Up the Environment
2 Installing the neccessary plugins
3 Creating a Separate VPC Infrastructure
4 Creating Security Group
5 Creating the Load Balancer
6 Creating Database in Private Subnet
7 Providing values for Variables
8 Getting DNS as Output
9 Final Output

About

Two tier architecture in AWS using Terraform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 96.7%
  • Shell 3.3%