open-consul/terraform/digitalocean/README.md

31 lines
882 B
Markdown
Raw Normal View History

2016-09-05 23:22:56 +00:00
# Requirements
2016-11-18 00:27:48 +00:00
* Terraform installed
* Digital Ocean account with API key
* SSH key uploaded to Digital Ocean
2016-09-05 23:22:56 +00:00
### Variables
Populate terraform.tfvars as follows (or execute with arguments as shown in Usage)
key_path = "~/.ssh/id_rsa"
do_token = "ASDFQWERTYDERP"
num_instances = "3"
ssh_key_ID = "my_ssh_keyID_in_digital_ocean"
2016-11-18 00:27:48 +00:00
region = "desired DO region"
2016-09-05 23:22:56 +00:00
# Usage
terraform plan \
-var 'key_path=~/.ssh/id_rsa' \
-var 'do_token=ASDFQWERTYDERP' \
-var 'num_instances=3' \
2016-11-18 00:27:48 +00:00
-var 'ssh_key_ID=86:75:30:99:88:88:AA:FF:DD' \
-var 'region=tor1'
2016-09-05 23:22:56 +00:00
terraform apply \
-var 'key_path=~/.ssh/id_rsa' \
-var 'do_token=ASDFQWERTYDERP' \
-var 'num_instances=3' \
2016-11-18 00:27:48 +00:00
-var 'ssh_key_ID=86:75:30:99:88:88:AA:FF:DD' \
-var 'region=tor1'