cmcornejocrespo / terraform-aws-demo

Example to provision ASG in AWS using Terraform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

terraform-aws-demo

Terraform-related code to create ASG in AWS supporting enmilocalfunciona.io blog entry.

What is this?

This is the terraform code that backs up the blog entry.

alt image

Requirements

  • Terraform 0.9.4+, install here
  • AWS access configured via IAM role or aws_access_key_id, aws_secret_access_key credentials

Usage

Inititialise terraform dependencies

$ terraform init

Check status

$ terraform plan 

Build infrastructure

$ terraform apply

Build infrastructure scaling up to 6 instances

$ terraform apply -var asg_desired=6

Destroy infrastructure

$ terraform destroy

About

Example to provision ASG in AWS using Terraform


Languages

Language:HCL 94.6%Language:Shell 5.4%