Simple Terraform environment used to quickly up droplets on Digital Ocean.
- Digital Ocean API Token
- Terraform v0.10.x or later
-
Clone this repository to a local directory of your choice
-
Copy
terraform.tfvars.sample
toterraform.tfvars
-
Put your API key and SSH key fingerprint in
terraform.tfvars
-
Run
terraform init
from the repository root
Each of the commands below should be run locally from the repository root:
terraform plan
Output:
No changes. Infrastructure is up-to-date.
This means that Terraform did not detect any differences between your
configuration and real physical resources that exist. As a result, no
actions need to be performed.
terraform apply
Output:
Apply complete! Resources: 0 added, 0 changed, 0 destroyed.
Outputs:
droplets_ipv4 = {}
droplet_size
defaults to512mb
in provided *.tfvars file.droplet_image
defaults toubuntu-16-04-x64
in provided *.tfvars file.droplet_region
defaults tosfo2
in provided *.tfvars file.
Template is available as open source under the terms of the MIT License.