Skip to content

Latest commit

 

History

History
58 lines (37 loc) · 1.34 KB

README.md

File metadata and controls

58 lines (37 loc) · 1.34 KB

Digitalocean Terraform

Simple Terraform environment used to quickly up droplets on Digital Ocean.

Requirements

Setup

  1. Clone this repository to a local directory of your choice

  2. Copy terraform.tfvars.sample to terraform.tfvars

  3. Put your API key and SSH key fingerprint in terraform.tfvars

  4. Run terraform init from the repository root

Usage

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 = {}

Configuration

  • droplet_size defaults to 512mb in provided *.tfvars file.
  • droplet_image defaults to ubuntu-16-04-x64 in provided *.tfvars file.
  • droplet_region defaults to sfo2 in provided *.tfvars file.

License

Template is available as open source under the terms of the MIT License.