Understanding Variable Types & Validation in TerraformTerraform variables are not just inputs — they are contracts that define what kind of data your infrastructure accepts. Proper typing and validation help prevent misconfiguration, enforce standards, and make your IaC production-ready. 1. Basic Types ...Jan 20 · 2 min readsidharthhhh.hashnode.dev
Organizing Terraform Files the Right WayOne of the biggest mistakes beginners make in Terraform is putting everything into main.tf. It works for demos—but quickly becomes messy and unmaintainable in real projects. Today, I focused on modern Terraform file organization while building a comp...Jan 7 · 1 min readsidharthhhh.hashnode.dev
Day 5 — Terraform Variables1. Variables Based on Purpose (Most Important) 1️⃣ Input Variables Used to pass values into Terraform. Avoid hardcoding Make configs reusable Can be mandatory or optional (via default) Common sources: terraform.tfvars *.auto.tfvars -var / -va...Jan 5 · 1 min readsidharthhhh.hashnode.dev
Day 4 — Terraform State File Management & Remote BackendTerraform works by comparing desired state (your .tf files) with the actual infrastructure using the state file. What is terraform.tfstate? It stores the current state of your infrastructure. Terraform uses it to detect what to create, update, or d...Jan 1 · 2 min readsidharthhhh.hashnode.dev
Creating an S3 Bucket with TerraformOn Day 3 of my #30DaysOfAWSTerraform journey, I learned how to create an AWS S3 bucket using Terraform—a simple but powerful step toward managing cloud infrastructure as code. Why S3 with Terraform? Amazon S3 is widely used for: Storing application ...Dec 30, 2025 · 1 min readsidharthhhh.hashnode.dev