Skip to content

kirillshevch/digitalocean-terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages