Consul is a distributed, highly available, and data center aware solution to connect and configure applications across dynamic, distributed infrastructure.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
James Phillips 953286b213
Tweaks DO example Terraform.
8 years ago
..
README.md Tweaks DO example Terraform. 8 years ago
consul.tf Tweaks DO example Terraform. 8 years ago
outputs.tf Tweaks DO example Terraform. 8 years ago
terraform.tfvars.example Tweaks DO example Terraform. 8 years ago
variables.tf Tweaks DO example Terraform. 8 years ago

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'