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.
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
Projects are organized by cloud provider:
See each provider directory for a short overview and links to its examples.
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.
- Install tenv and ensure
terraformruns via the tenv proxy (which terraform). - Pick a provider, open its README, then follow the README in the example you want to try.
Currently available: