Terraform: Zero to Confident
Welcome to the DevOpsLesson Terraform Lab 🟣
This is a safe, simulated Terraform environment — nothing real is provisioned.
Follow the steps on the left. Type a command below, or type 'help' anytime.
Terraform Playground Lab: Practice Terraform in Your Browser
This interactive Terraform lab lets you run the core Terraform workflow — init, plan, apply, and destroy — against simulated infrastructure, with no Terraform install and no cloud provider account. It is ideal for learning Infrastructure as Code without the risk or cost of provisioning real resources.
The lab walks you through how Terraform turns configuration into infrastructure: initialize a working directory, preview changes with a plan, apply them to create resources, inspect the resulting state, and tear everything down with destroy. Each step is checked automatically so you understand exactly what Terraform does at every stage.
Because the provider and state are simulated in your browser, you can iterate quickly — edit, plan, apply, and reset — which is the fastest way to internalize the Terraform workflow before running it against real AWS, Azure, or GCP accounts.
What you'll practice
Initialize
Set up a working directory and providers with terraform init.
Plan
Preview exactly what will change with terraform plan before touching anything.
Apply
Create and update resources with terraform apply and read the execution output.
State & destroy
Inspect managed resources in state and cleanly remove them with terraform destroy.
How the Terraform lab works
- The terminal simulates the Terraform CLI and a provider — plans, applies, and state transitions behave like a real run.
- A guided step panel introduces each concept and validates your command, so the lab is a tutorial and a sandbox in one.
- Type help to see commands and use reset to return to a clean working directory whenever you want to start over.
Frequently asked questions
Do I need a cloud account to use this lab?
No. The lab simulates the provider and state in your browser, so you can practice the full Terraform workflow with no AWS/Azure/GCP account and nothing installed.
Are these real Terraform commands?
Yes. init, plan, apply, and destroy behave like the real CLI, so your skills transfer directly to real infrastructure.
Is the Terraform playground free?
Yes — completely free, no sign-up, no downloads.
What is Infrastructure as Code?
It is the practice of defining infrastructure in configuration files so it is versioned, repeatable, and reviewable. Terraform is the most popular IaC tool — see the links below to go deeper.