Skip to content

There are ways to DRY (don't repeat yourself) your code to make it considerably easier for reuse and reduce the blast radius for changes.

Notifications You must be signed in to change notification settings

katapultmedia/training-drying-up-terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KM

DRY Terraform Tutorial

Terraform (TF) is a great way to provision infrastructure. In fact, it is to us becoming the de facto standard. There are ways to DRY (don't repeat yourself) your code to make it considerably easier for reuse and reduce the blast radius for changes.

This code continues where Terraforming TF Cloud leaves off.

Video Walkthrough

video

Terraform Modules

TF modules can be thought of as reusable classes, if you're a programmer. They enable not only a way to reuse code, but a way to help architect more thoughtful solutions to speed up deployments, disaster recovery, and more.

Usage

This project is not intended to be used as a module for remote use. Take the files, customize them, and use them to your hearts content. Create an issue if you have questions.

The Makefile has general commands to use for ease of development. There aren't special by any means. Feel free to cd to directories and run the terraform CLI commands you know and love directly.

make commands

Available targets:
config-apply                   TF Apply the cloud-config directory
config-plan                    TF Plan the cloud-config directory
fmt                            Formats the TF
init                           Install required tools for local environment
plan                           TF Plan the terraform directory

Trademarks

All other trademarks referenced herein are the property of their respective owners.

About

This tutorial is maintained and funded by Katapult Media, Inc. Send us a message!

KM

About

There are ways to DRY (don't repeat yourself) your code to make it considerably easier for reuse and reduce the blast radius for changes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published