Terraform Basics 4: Automatically Configure Load-Balanced Web Servers @tutoriaLinux
Terraform Basics 4: Automatically Configure Load-Balanced Web Servers  @tutoriaLinux
Uploaded April 2018 | Updated September 2026, 2 weeks ago
In this video we'll use Terraform to provision two more DigitalOcean droplets. One will be another (refactored) web server resource, the other will be our load balancer. We'll use a few Terraform /DigitalOceanfeatures to provision and configure all of this infrastructure automatically:

- Terraform template files and variables to automatically create a haproxy configuration file
- user-data to run configuration scripts on our DigitalOcean droplets at first boot

# TABLE OF CONTENTS
0:19 Configuring Droplets with User-Data
3:32 Provisioning a load balancer
4:45 Terraform Template Files
10:19 Terraform plugins/terraform init

DigitalOcean referral link: https://m.do.co/c/0380a1db56a6

This video is part 4 of the project-based DigitalOcean/Terraform mini-course: youtube.com/playlist?list=PLtK75qxsQaMIHQOaDd0Zl_jOuu1m3vcWO

Project Code Repository: github.com/groovemonkey/digitalocean-terraform

Huge thanks to DigitalOcean for their sponsorship -- they made these videos possible!

My step-by-step project-based Linux course for beginners: udemy.com/course/hands-on-linux-self-hosted-wordpress-for-linux-beginners/?referralCode=19C0A7DEE2FD53C9C09D

Free Linux Sysadmin Course Playlist: youtube.com/playlist?list=PLtK75qxsQaMLZSo7KL-PmiRarU7hrpnwK

Patreon: patreon.com/tutorialinux
Official Site & e-mail list: tutorialinux.com
Twitter: twitter.com/tutorialinux
Facebook: facebook.com/tutorialinux
Podcast: kernelpanicpodcast.com
Terraform Basics 4: Automatically Configure Load-Balanced Web ServersResources for Becoming a Linux System AdministratorIm back!The Worst Mistake that New Sysadmins MakeTech skill planning for the greedy and lazyDevOps Resume ProjectsWhy I Moved From Ops to DevOps (and why you might want to)Intro to DevOps and System Architecture: Book Review3 Concepts to Master for DevOps/SRE InterviewsTerraform Basics 5: Tips & Tricks, Next StepsMySQL/MariaDB Basics (RHCE Certification Study)I made a Packer Course!
tutoriaLinux |

Terraform Basics 4: Automatically Configure Load-Balanced Web Servers

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER