open-consul/terraform/digitalocean
Josh Soref 1dd8c378b9 Spelling (#3958)
* spelling: another

* spelling: autopilot

* spelling: beginning

* spelling: circonus

* spelling: default

* spelling: definition

* spelling: distance

* spelling: encountered

* spelling: enterprise

* spelling: expands

* spelling: exits

* spelling: formatting

* spelling: health

* spelling: hierarchy

* spelling: imposed

* spelling: independence

* spelling: inspect

* spelling: last

* spelling: latest

* spelling: client

* spelling: message

* spelling: minimum

* spelling: notify

* spelling: nonexistent

* spelling: operator

* spelling: payload

* spelling: preceded

* spelling: prepared

* spelling: programmatically

* spelling: required

* spelling: reconcile

* spelling: responses

* spelling: request

* spelling: response

* spelling: results

* spelling: retrieve

* spelling: service

* spelling: significantly

* spelling: specifies

* spelling: supported

* spelling: synchronization

* spelling: synchronous

* spelling: themselves

* spelling: unexpected

* spelling: validations

* spelling: value
2018-03-19 16:56:00 +00:00
..
README.md Tweaks DO example Terraform. 2016-11-17 16:27:48 -08:00
consul.tf Tweaks DO example Terraform. 2016-11-17 16:27:48 -08:00
outputs.tf Fix a typo in output. 2017-09-05 09:14:21 -07:00
terraform.tfvars.example Tweaks DO example Terraform. 2016-11-17 16:27:48 -08:00
variables.tf Spelling (#3958) 2018-03-19 16:56:00 +00:00

README.md

Requirements

  • Terraform installed
  • Digital Ocean account with API key
  • SSH key uploaded to Digital Ocean

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"
region = "desired DO region"

Usage

terraform plan                      \
  -var 'key_path=~/.ssh/id_rsa'     \
  -var 'do_token=ASDFQWERTYDERP'    \
  -var 'num_instances=3'            \
  -var 'ssh_key_ID=86:75:30:99:88:88:AA:FF:DD' \
  -var 'region=tor1'

terraform apply                     \
  -var 'key_path=~/.ssh/id_rsa'     \
  -var 'do_token=ASDFQWERTYDERP'    \
  -var 'num_instances=3'            \
  -var 'ssh_key_ID=86:75:30:99:88:88:AA:FF:DD' \
  -var 'region=tor1'