Skip to content

gihanrv/infarstructure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Infarstructure

Terraform deployment for apache

Module

Terraform deployment for apache auto-scaling group.

Tools

Terraform>=0.13

aws cli

Getting Started

Teraform Moudles wich I have used

  • VPC
  • DynamoDB
  • S3
  • Security Group
  • Auto Scaling Group
  • Launch Template
  • ALB

Installing

    1. Frist create an S3 bucket to store terraform status in S3 with DynamoDB
    1. Create the AWS VPC. This will create 2 Private AZs and 2 Public AZs in the provided region (Note: You have to provide your custom CIDRs for Public and Private Subnets)
    1. Create Security Groups for Public ALB and Private EC2 instance
    1. Create Launch Template
    1. Deploy an ALB in the public subnet
  • 6.Create the auto-scaling group to scale up and down with the instance CPU utilization

deployment

    1. aws/accout_id/backend_s3_with_dynamodb/-> and terrafrom init-> terrafrom plan -> terrafrom apply
    1. aws/accout_id/vpc_create/ -> and terrafrom init-> terrafrom plan -> terrafrom apply | chage the backend.tf s3 state path | Provide WAS variable (ex.tags)
    1. sg_create -> and terrafrom init-> terrafrom plan -> terrafrom apply | chage the backend.tf s3 state path | Provide WAS variable (ex.tags)
    1. aws/accout_id/launch_template -> and terrafrom init-> terrafrom plan -> terrafrom apply | chage the backend.tf s3 state path | Provide WAS variable (ex.tags)
    1. aws/accout_idlb_for_asg -> and terrafrom init-> terrafrom plan -> terrafrom apply | chage the backend.tf s3 state path | Provide WAS variable (ex.tags)
    1. aws/accout_id/al-> and terrafrom init-> terrafrom plan -> terrafrom apply | chage the backend.tf s3 state path | Provide WAS variable (ex.tags)

image

About

Terraform deployment for apache

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published