open-consul/terraform/aws
Ryan Uber ad46a724e0 Merge pull request #1971 from iadknet/feature/terraform-centos7
terraform: added support for centos7 to aws
2016-07-05 12:56:10 -07:00
..
scripts Update install.sh 2016-05-04 18:03:39 +02:00
consul.tf
outputs.tf
README.md
variables.tf terraform: added support for centos7 to aws 2016-04-21 15:32:30 -07: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.