Skip to content

Terraform

Terraform manages infrastructure as code across my homelab and cloud environments. From spinning up Proxmox VMs to deploying Azure resources, everything is declarative.

My Setup

Environment Overview

  • State Backend: Remote state with locking
  • Providers: Proxmox, Azure (including Gov Cloud), Cloudflare
  • Modules: Custom modules for reusable patterns
  • Integration: Plan/Apply via GitLab CI/CD

Topics

Guide Description Status
Getting Started Terraform basics and first deployment In Progress
Azure Modules Terraform for Azure infrastructure Planned
Proxmox Provider Managing VMs with Terraform Planned
State Management Remote backends and workspaces Planned

Quick Reference

# Initialize working directory
terraform init

# Preview changes
terraform plan

# Apply changes
terraform apply

# Destroy resources
terraform destroy

# Format all .tf files
terraform fmt -recursive

# Import existing resource
terraform import <resource.name> <id>