Terraform Modules Best Practices: Write Reusable Infrastructure Code
Modules are Terraform’s unit of reuse — a directory of .tf files you can call from multiple places. Good modules save hours. Bad modules create …
Modules are Terraform’s unit of reuse — a directory of .tf files you can call from multiple places. Good modules save hours. Bad modules create …
Quick Answer # Delete lock file and re-initialize rm .terraform.lock.hcl terraform init -upgrade If that doesn’t work, the conflict is in your …
Quick Answer You’re referencing a resource that doesn’t exist in your configuration. Check for: Typo in the resource name Missing resource …
Terraform Stacks (GA late 2025) and Workspaces solve different problems, but teams often confuse them. Workspaces isolate state for the same …
Quick Answer The argument doesn’t exist for this resource in your provider version. Check for: Typo in the argument name Wrong provider version …
Variables are inputs — values passed into your configuration. Outputs are results — values exposed after terraform apply. Together they define how …
Amazon Linux 2 reaches end of life on June 30, 2026. After that date, AWS stops providing security patches, bug fixes, and updates. If you’re …
This is the most common IaC decision for AWS teams. Both are mature, production-ready tools — but they solve the problem differently. Here’s an …
OpenTofu is a drop-in replacement for Terraform with an open-source MPL 2.0 license. Migration is straightforward for most projects — the CLI, HCL …
EKS Auto Mode is AWS’s answer to “Kubernetes is too complicated.” It automates node management, scaling, networking, and security …
Ephemeral resources are a newer Terraform feature (announced at HashiDays 2025) that solves a long-standing problem: how to use secrets during a …
Agentic AI is the biggest infrastructure trend of 2026. AI is moving from chat interfaces to autonomous agents that execute multi-step tasks across …
LEARN BY DOING
Interactive, project-based learning — copy, paste, and understand