open-consul/terraform/aws/README.md

27 lines
1.0 KiB
Markdown
Raw Normal View History

2015-06-01 17:43:50 +00:00
## Running the aws templates to set up a consul cluster
2016-11-07 19:52:33 +00:00
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`
2015-06-01 17:43:50 +00:00
For AWS provider, set up your AWS environment as outlined in https://www.terraform.io/docs/providers/aws/index.html
2016-11-07 19:52:33 +00:00
To set up ubuntu based, run the following command, taking care to replace `key_name` and `key_path` with actual values:
2015-06-01 17:43:50 +00:00
2016-11-07 19:52:33 +00:00
`terraform apply -var 'key_name=consul' -var 'key_path=/Users/xyz/consul.pem'`
2015-06-01 17:43:50 +00:00
2016-11-07 19:52:33 +00:00
or
2015-06-01 17:43:50 +00:00
2016-11-07 19:52:33 +00:00
`terraform apply -var 'key_name=consul' -var 'key_path=/Users/xyz/consul.pem' -var 'platform=ubuntu'`
2015-06-01 17:43:50 +00:00
2016-11-07 19:52:33 +00:00
For CentOS7:
2015-06-01 17:43:50 +00:00
2016-11-07 19:52:33 +00:00
`terraform apply -var 'key_name=consul' -var 'key_path=/Users/xyz/consul.pem' -var 'platform=centos7'`
2015-06-03 00:57:35 +00:00
2016-11-07 19:52:33 +00:00
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.