项目作者: cmcornejocrespo

项目描述 :
Example to provision ASG in AWS using Terraform
高级语言: HCL
项目地址: git://github.com/cmcornejocrespo/terraform-aws-demo.git
创建时间: 2017-11-24T11:14:33Z
项目社区:https://github.com/cmcornejocrespo/terraform-aws-demo

开源协议:

下载


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

  1. $ terraform init

Check status

  1. $ terraform plan

Build infrastructure

  1. $ terraform apply

Build infrastructure scaling up to 6 instances

  1. $ terraform apply -var asg_desired=6

Destroy infrastructure

  1. $ terraform destroy