github.com/sl1pm4t/consul@v1.4.5-0.20190325224627-74c31c540f9c/terraform/digitalocean/README.md (about) 1 # Requirements 2 3 * Terraform installed 4 * Digital Ocean account with API key 5 * SSH key uploaded to Digital Ocean 6 7 ### Variables 8 Populate terraform.tfvars as follows (or execute with arguments as shown in Usage) 9 10 key_path = "~/.ssh/id_rsa" 11 do_token = "ASDFQWERTYDERP" 12 num_instances = "3" 13 ssh_key_ID = "my_ssh_keyID_in_digital_ocean" 14 region = "desired DO region" 15 16 # Usage 17 18 terraform plan \ 19 -var 'key_path=~/.ssh/id_rsa' \ 20 -var 'do_token=ASDFQWERTYDERP' \ 21 -var 'num_instances=3' \ 22 -var 'ssh_key_ID=86:75:30:99:88:88:AA:FF:DD' \ 23 -var 'region=tor1' 24 25 terraform apply \ 26 -var 'key_path=~/.ssh/id_rsa' \ 27 -var 'do_token=ASDFQWERTYDERP' \ 28 -var 'num_instances=3' \ 29 -var 'ssh_key_ID=86:75:30:99:88:88:AA:FF:DD' \ 30 -var 'region=tor1'