Skip to content

Create EC2,VPC, Private subnet, ALB, ASG using Terraform-Module.

Notifications You must be signed in to change notification settings

Krupeshgithub/Terraform-Module

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform-Module snippet for deploying ASG in private subnet behind ALB

Below is the architecture to be implemented:

mehul (2)

Prerequisites:

  1. AWS account
  2. IAM role with necessary permissions
  3. Terraform (Version : 0.12) & AWS CLI configured on machine from which the scripts are to be run

Modules included are:

In script we are use two module use

  • First module is network : for more understand please follow this link
  • Second module is ec2 : for more understand please follow this link

Follow Below Steps to RUN Terraform snippet

  1. Create folder and Clone this repo.
  2. Change required variable value
  3. Initialize terraform using
terraform init
  1. Show changes required by the current configuration
terraform plan
  1. Create or update infrastructure
terraform apply

Your infra is ready to use now.

  1. Destroy previously-created infrastructure
terraform destroy

About

Create EC2,VPC, Private subnet, ALB, ASG using Terraform-Module.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 100.0%