/digitalocean-terraform

A quick terraform tutorial for setting up load balanced web servers in digitalocean.

Primary LanguageHCL

TutoriaLinux Digitalocean Terraform mini-course extravaganza!

A quick terraform tutorial for setting up load balanced web servers in digitalocean.

This repository goes along with the free YouTube terraform course

It contains the terraform code that you can use to follow along and set up a haproxy-load-balanced group of webservers.

Have fun!

Quickstart:

  1. Clone this repo:

git clone https://github.com/groovemonkey/digitalocean-terraform.git

  1. Set up DigitalOcean credentials:
  1. Put those credentials into the variables.tf file.

  2. Initialize and run terraform:

terraform init
terraform plan
  1. If you're ready to spend some money (or DO credits):

terraform apply