Skip to content

Files

Latest commit

4b561d0 · Nov 28, 2021

History

History
41 lines (31 loc) · 1.18 KB

README.md

File metadata and controls

41 lines (31 loc) · 1.18 KB

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