๐ŸŸฃInteractive ยท Runs in your browser ยท 100% free

Terraform Playground

The best way to learn Terraform is by doing. Read the quick primer below, then launch a full-screen, hands-on lab that grows with you โ€” from writing your first resource in HCL as a beginner all the way to state, outputs and destroy. Each step asks what you need to do; you type the answer in a safe, simulated terminal that checks your work instantly.

~25 min ยท 11 guided steps ยท Beginner โ†’ Advanced

Terraform in 60 seconds

The three ideas you need first

A quick primer before you jump in. Skim these, then head to the terminal.

01

What is Terraform?

Terraform is an Infrastructure as Code tool. Instead of clicking through a cloud console, you describe the infrastructure you want in configuration files, and Terraform creates, updates and deletes real resources to match โ€” repeatably and safely.

Read the intro tutorial
02

What is Infrastructure as Code?

IaC means managing servers, networks and services through version-controlled files rather than manual steps. You write HCL (HashiCorp Configuration Language), commit it to git, review changes in pull requests, and get consistent, reproducible environments every time.

Explore IaC
03

What is this playground?

A safe, simulated Terraform environment that runs entirely in your browser. You write real HCL and type real terraform commands, seeing realistic output โ€” but nothing is provisioned and nothing can break. Guided steps check your work and track progress automatically.

Jump into the lab

What you'll do in the lab

11 bite-sized, auto-checked challenges that build on each other โ€” from your first command as a beginner all the way to advanced outputs and clean teardown.

  1. 1

    How do you check which version of Terraform is installed?

    Print the installed Terraform version.

  2. 2

    How do you tell Terraform what to build?

    Create a main.tf file that declares one resource.

  3. 3

    How do you prepare a directory to run Terraform?

    Initialize the working directory.

  4. 4

    How do you auto-format your configuration to the standard style?

    Rewrite the configuration files into canonical style.

  5. 5

    How do you check your configuration is syntactically valid?

    Validate the configuration.

  6. 6

    How do you preview what Terraform will change before it changes it?

    Generate an execution plan.

  7. 7

    How do you actually create the resource?

    Apply the configuration to create your resource.

  8. 8

    How do you see which resources Terraform is now tracking?

    List the resources recorded in state.

  9. 9

    How do you expose a useful value from your configuration?

    Add an output block, then apply again so it is computed.

  10. 10

    How do you read an output value on demand?

    Show the output values from state.

  11. 11

    How do you tear everything down cleanly?

    Destroy all managed resources.

How the playground works

1

Read the question

The left panel teaches a Terraform concept, then asks what you need to do โ€” with a hint on standby if you get stuck.

2

Type it in the terminal

Write the HCL or work out the command and type it yourself. The simulated Terraform CLI responds just like the real thing.

3

Auto-check & advance

When your command hits the goal, the step turns green, the progress bar fills, and the next step unlocks.

Frequently asked questions

Is this Terraform playground free?+

Yes. The Terraform playground is 100% free with no sign-up, no credit card and no downloads. Just open the page and start writing HCL and running Terraform commands in your browser.

Do I need to install Terraform to use it?+

No. Nothing is installed on your computer and no cloud account is required. The playground runs a safe, simulated Terraform CLI entirely in your browser, so you can practice real commands without setting anything up.

Is this a real Terraform environment?+

It is a high-fidelity simulation. You write real HCL and type real Terraform commands (terraform init, validate, plan, apply, state, output, destroy) and get realistic output โ€” but no infrastructure is actually provisioned, so you cannot break anything or incur any cost.

Which Terraform commands can I practice?+

The guided lab covers the full workflow: checking the version, writing a resource in HCL, initializing providers, formatting and validating, previewing with plan, creating with apply, listing state, exposing outputs, and tearing everything down with destroy.

Is the Terraform playground good for complete beginners?+

Absolutely. The lab starts at the very beginning and grows step by step into intermediate and advanced topics, so it builds your Terraform muscle memory gradually โ€” no prior experience with cloud or IaC required.

How long does the lab take?+

About 25 minutes for all 11 steps, and your progress is saved automatically so you can pause and come back anytime.

Ready to run your first plan?

No setup, no cloud account, no risk. Jump straight into the terminal and start learning Terraform by doing.

Launch Playground โ†’