Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learn Terraform

This repository is a collection of small Terraform projects for learning Infrastructure as Code.

Each example focuses on one concept and keeps the code minimal so you can read, run, and understand it quickly.

Table of contents

Topics

Examples are grouped around common Terraform fundamentals:

  • Basic — minimal provider setup and a first resource
  • Remote state — storing and sharing state outside your local machine
  • Modules — reusing and composing Terraform code

Cloud providers

Projects are organized by cloud provider:

Provider Examples
Azure 101-basic, 201-modules, 301-remote-state, 351-modules-remote-state
AWS 101-basic, 201-modules, 301-remote-state, 351-modules-remote-state
GCP 101-basic, 201-modules, 301-remote-state, 351-modules-remote-state

See each provider directory for a short overview and links to its examples.

Tools

Examples assume a local Terraform setup. For installing and switching Terraform, OpenTofu, and Terragrunt versions, see tenv.md.

If brew install tenv fails because opentofu, terragrunt, or tfenv is already installed, see Homebrew conflicts in that guide.

Getting started

  1. Install tenv and ensure terraform runs via the tenv proxy (which terraform).
  2. Pick a provider, open its README, then follow the README in the example you want to try.

Currently available:

Releases

Packages

Contributors

Languages