AWS CDK vs Terraform: Which IaC Tool Should You Use in 2026?
AWS CDK lets you define infrastructure in TypeScript, Python, Java, or Go. Terraform uses HCL. Both deploy AWS resources — but the approach, …
AWS CDK lets you define infrastructure in TypeScript, Python, Java, or Go. Terraform uses HCL. Both deploy AWS resources — but the approach, …
Pulumi and Terraform are both multi-cloud IaC tools — but Pulumi uses real programming languages while Terraform uses HCL. This matters more than most …
You have 50 AWS resources created manually in the console. You need them in Terraform. The old terraform import CLI required importing one resource at …
Data sources let Terraform read information from your cloud provider or external systems without creating or managing resources. Use them to look up …
Terraform automatically determines resource ordering from references in your code. You rarely need depends_on — but when you do, it’s critical. …
Both count and for_each create multiple instances of a resource. The difference: count uses numeric indexes, for_each uses string keys. This matters …
Locals are computed values within your Terraform configuration — think of them as named constants or intermediate variables. They reduce duplication, …
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 …
Terraform Stacks (GA late 2025) and Workspaces solve different problems, but teams often confuse them. Workspaces isolate state for the same …
Variables are inputs — values passed into your configuration. Outputs are results — values exposed after terraform apply. Together they define how …
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 …
LEARN BY DOING
Interactive, project-based learning — copy, paste, and understand