# Terraform Fundamentals

> Master the core concepts of Terraform, including HCL syntax, state management, providers, and resource lifecycle to build reproducible cloud infrastructure.

Canonical: https://codelivly.com/rooms/terraform-fundamentals
Last updated: 2026-10-29

| | |
|---|---|
| Level | Intermediate |
| Category | Cybersecurity |
| Lessons | 5 |
| Estimated time | 30 min |
| XP | 100 |

This module provides the essential foundation for understanding and working with Infrastructure as Code (IaC) using Terraform. Before you can secure infrastructure, you must understand how it is defined and deployed. You will learn the core principles of the shift-left paradigm for cloud environments, the structure of HashiCorp Configuration Language (HCL), and how Terraform interacts with cloud providers. We will cover the lifecycle of resources, the critical concept of state management, and how to parameterize configurations using variables and outputs. The module culminates in a hands-on guided lab where you will write, validate, and apply your first Terraform configuration to provision a secure cloud resource.

## Lessons

1. What Is Infrastructure as Code and Why Does It Matter (30 min)
2. Providers, Resources and State (30 min)
3. Variables, Modules and the Plan/Apply Workflow (30 min)
4. Remote State and Workspaces (30 min)
5. Guided Lab: Provisioning a Small Environment with Terraform (30 min)

## Related

- [Learning path: Infrastructure as Code Security](https://codelivly.com/learning-paths/infrastructure-as-code-security)
- [All rooms](https://codelivly.com/rooms)
