github.com/outbrain/consul@v1.4.5/terraform/aws/README.md (about)

     1  ## Running the aws templates to set up a consul cluster
     2  
     3  The platform variable defines the target OS (which in turn controls whether we install the Consul service via `systemd` or `upstart`).  Options include:
     4  
     5  - `ubuntu` (default)
     6  - `rhel6`
     7  - `rhel7`
     8  - `centos6`
     9  - `centos7`
    10  
    11  
    12  For AWS provider, set up your AWS environment as outlined in https://www.terraform.io/docs/providers/aws/index.html
    13  
    14  To set up ubuntu based, run the following command, taking care to replace `key_name` and `key_path` with actual values:
    15  
    16  `terraform apply -var 'key_name=consul' -var 'key_path=/Users/xyz/consul.pem'`
    17  
    18  or
    19  
    20  `terraform apply -var 'key_name=consul' -var 'key_path=/Users/xyz/consul.pem' -var 'platform=ubuntu'`
    21  
    22  For CentOS7:
    23  
    24  `terraform apply -var 'key_name=consul' -var 'key_path=/Users/xyz/consul.pem' -var 'platform=centos7'`
    25  
    26  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.