Coder Social home page Coder Social logo

devops's Introduction

Infrastructure Setup with Terraform

Project Overview

This project sets up an infrastructure using Terraform to manage AWS resources. The key components include a Virtual Private Cloud (VPC) with public and private subnets across two availability zones, an Application Load Balancer (ALB) to distribute HTTP requests, and EC2 instances running NGINX servers in private subnets.

Table of Contents

Architecture

The infrastructure architecture includes:

  • VPC and Subnets: A VPC spanning two availability zones, each with a public and private subnet.
  • Internet Gateway and NAT Gateways: An Internet Gateway for public subnets and NAT Gateways to enable private instances to access the internet.
  • Route Tables: Configured route tables for managing traffic flow between subnets and the internet.
  • Security Groups: Security groups to control inbound and outbound traffic for the ALB and EC2 instances.
  • Application Load Balancer: An ALB to distribute HTTP requests across EC2 instances in private subnets.
  • EC2 Instances: Two EC2 instances running NGINX servers in private subnets.

Components

  1. VPC Configuration
  2. Internet Gateway and NAT Gateways
  3. Route Tables
  4. Security Groups
  5. Application Load Balancer
  6. EC2 Instances
  7. IAM Roles and Instance Profiles

Setup Instructions

Prerequisites

  • Terraform (>= 1.2.0)
  • AWS CLI configured with appropriate permissions

Steps

  1. Clone the Repository

    git clone https://github.com/j-zavala/devops.git
    cd devops
    git checkout week-3-completed
  2. Initialize Terraform

    terraform init
  3. Plan the Infrastructure

    terraform plan
  4. Apply the Configuration

    terraform apply

Usage

Once the infrastructure is set up, you can access the web application via the ALB's DNS name. The ALB will distribute incoming HTTP requests to the NGINX servers running on the private EC2 instances.

devops's People

Contributors

j-zavala avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.