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!
- Clone this repo:
git clone https://github.com/groovemonkey/digitalocean-terraform.git
- Set up DigitalOcean credentials:
- DigitalOcean Signup Link (if you use this link to sign up for DO, we both get some DO credits)
- DigitalOcean SSH Key/API Token Setup video
-
Put those credentials into the
variables.tf
file. -
Initialize and run terraform:
terraform init
terraform plan
- If you're ready to spend some money (or DO credits):
terraform apply