open-consul/terraform/aws
Kuba Tyszko 4a993fd9e3 upgrading ubuntu ami to 16.04, switching to systemd, allowing multiple AZ/subnets through subnets={} map, upgrading consul to 0.9.3 (#3566) 2017-10-17 16:59:34 -07:00
..
README.md Update README.md (#2479) 2016-11-07 11:52:33 -08:00
consul.tf upgrading ubuntu ami to 16.04, switching to systemd, allowing multiple AZ/subnets through subnets={} map, upgrading consul to 0.9.3 (#3566) 2017-10-17 16:59:34 -07:00
outputs.tf
variables.tf upgrading ubuntu ami to 16.04, switching to systemd, allowing multiple AZ/subnets through subnets={} map, upgrading consul to 0.9.3 (#3566) 2017-10-17 16:59:34 -07:00

README.md

Running the aws templates to set up a consul cluster

The platform variable defines the target OS (which in turn controls whether we install the Consul service via systemd or upstart). Options include:

  • ubuntu (default)
  • rhel6
  • rhel7
  • centos6
  • centos7

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 the following command, taking care to 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'

For CentOS7:

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

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.