Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Modules, Loops and More: How to Scale with Terr...

Modules, Loops and More: How to Scale with Terraform

Terraform has become vital to your team's workflow for managing your infrastructure. However, as your infrastructure has grown your code has become more complex, needlessly messy, and harder to manage. In this talk we explore ways to simplify your infrastructure code even while you add more resources to your infrastructure. We'll dive into advanced features in Terraform such as modules, workspaces, for_loops, and data sources to build reusable, scalable infrastructure. By the end of this talk, you will have a solid understanding of how to use Terraform to scale infrastructure in a reliable and efficient way.

This talk was given at KCDC 2023.

Scott McAllister

June 23, 2023
Tweet

More Decks by Scott McAllister

Other Decks in Programming

Transcript

  1. Modules, Loops and More: How to Scale with Terraform Scott

    McAllister Principal Developer Advocate
  2. Loops count Terraform’s oldest, simplest, most limited looping construct. for_each

    Loop over lists, sets, maps. Result is a map of resources for expressions creates a complex type value by transforming another complex type value for string directive String directives allow to use control statements within strings @stmcallister