Lion Cipher Lab

Manage Infrastructure-as-Code with Terraform (no cloud needed)

Why it matters

Infrastructure-as-Code (IaC) means you describe your infrastructure -- servers, networks, storage, firewall rules -- as text files and let a tool build it, instead of clicking around a console. That is how modern cloud is actually run: the setup is versioned in Git, reviewed like any other code, and reproducible on demand. Terraform is the most widely used IaC tool, and OpenTofu is its open-source fork, so learning the workflow here transfers almost everywhere. Two things make this a security topic, not just an ops one. First, the Terraform state file (terraform.tfstate) is a JSON record of…

What you'll learn

Steps in this lab

  1. What Infrastructure-as-Code actually means
  2. Install Terraform (or OpenTofu) -- no cloud account required
  3. Write a tiny main.tf using the local and random providers
  4. Initialize the working directory (terraform init)
  5. Preview the change (terraform plan), then read it
  6. Make it real (terraform apply)
  7. Understand STATE -- and why it is sensitive
  8. Clean up (terraform destroy) and scan before you deploy
  9. Why this loop is worth making a reflex

Open the full interactive lab →