open-consul/terraform/aws
Ben Hinchley d65cc40375 add asia pacific region to list for ubuntu
using these images
ap-northeast-1 => ubuntu/images/hvm-ssd/ubuntu-trusty-14.04-amd64-server-20150528
ap-southeast-1 => ubuntu/images/hvm-ssd/ubuntu-trusty-14.04-amd64-server-20150528
ap-southeast-2 => ubuntu/images/hvm-ssd/ubuntu-trusty-14.04-amd64-server-20150528
2016-02-19 16:35:29 +11:00
..
scripts Fix Consul download link in Terraform scripts 2016-02-10 14:18:13 -02:00
consul.tf AMI changes to reflect latest HVM and instance type changes to t2.micro 2015-06-02 15:54:08 -04:00
outputs.tf terraform modules (for TF 0.3) 2014-10-11 17:10:05 -07:00
README.md centos6 Initial commit 2015-06-02 20:57:35 -04:00
variables.tf add asia pacific region to list for ubuntu 2016-02-19 16:35:29 +11:00

Running the aws templates to set up a consul cluster

The platform variable defines the target OS, default is ubuntu, rhel6 is an option

For AWS provider, set up your AWS environment as outlined in https://www.terraform.io/docs/providers/aws/index.html

To set up ubuntu based, run like below, replace key_name and key_path with actual values

terraform apply -var 'key_name=consul' -var 'key_path=/Users/xyz/consul.pem'

or

terraform apply -var 'key_name=consul' -var 'key_path=/Users/xyz/consul.pem' -var 'platform=ubuntu'

To run rhel6, run like below

terraform apply -var 'key_name=consul' -var 'key_path=/Users/xyz/consul.pem' -var 'platform=rhel6'

For centos6 platform, for the default AMI, you need to accept the AWS market place terms and conditions. When you launch first time, you will get an error with an URL to accept the terms and conditions.