Terraform Isn’t What I Expected: Hidden Things You Should Know
Terraform is an Infrastructure as Code (IaC) tool made by HashiCorp. Instead of clicking around in the AWS or Azure console to create servers, databases, and networks, you write code that describes...

Source: DEV Community
Terraform is an Infrastructure as Code (IaC) tool made by HashiCorp. Instead of clicking around in the AWS or Azure console to create servers, databases, and networks, you write code that describes the infrastructure you want, and Terraform makes it happen. Automatically. Repeatably. Safely. When I started learning Terraform, I came across a lot of interesting and unexpected things that aren’t usually explained in most tutorials. Most guides focus on the basics, how to create resources, run plan, and apply changes. But as I went deeper, I found concepts and behaviors that really changed how I understand and use Terraform. So in this post, I’m sharing those less obvious but important things I learned along the way, the kind of knowledge that actually makes you more confident using Terraform in real-world scenarios. Let's dive in. 1. Implicit vs Explicit Dependencies When Terraform creates infrastructure, it needs to know the right order to create things. You can't create a subnet before