VFlash: Fast, Accurate Visual Planning via Flash Primitive Decoding
u_Unrolled
D17: Cloud & AI Platform · Infrastructure as Code — Plans, State, Drift, GitOps and Policy

Infrastructure as Code — Plans, State, Drift, GitOps and Policy

15 min read·Intermediate· Unrolled Pro
Infrastructure as Code — Plans, State, Drift, GitOps and Policy

You already know: the reconciliation loop (Kubernetes for ML); declarative serving deployments (Serving platforms); IAM and least privilege (Cloud fundamentals); testing and CI (D1 Testing & packaging); release gates (D10); versioning everything (D11).

Why this matters for Atlas. Infrastructure as code (IaC) describes infrastructure (networks, clusters, node pools, buckets, databases, IAM roles, DNS, Kubernetes deployments) in versioned text files, and uses tools to make reality match them. Every change becomes a reviewed pull request with a plan showing exactly what will change; environments (dev, staging, prod, another region) are created from the same code; and drift (manual changes that diverge from the code) is detected and corrected. Policy-as-code checks catch mistakes like public buckets before they're applied. This lesson builds the core mechanics: desired state, plans as diffs, state files, drift detection, modules for environments, GitOps, secrets and policy checks.


1. Declarative infrastructure and the plan

The question. Instead of clicking "create bucket", what does IaC do?

Start from nothing. You write the desired resources (Terraform/OpenTofu HCL, Pulumi in a general-purpose language, CloudFormation, Crossplane). The tool:

That's the preview. The full lesson, with its code and exercises, is part of Unrolled Pro.
Staff AI & Pro Tier Lesson

Unlock "Infrastructure as Code — Plans, State, Drift, GitOps and Policy"

The foundations are free forever. Unrolled Pro unlocks the complete lesson, production architectures, and 55 battle-tested ML system design case studies.

Everything included with Pro:
All 234+ Deep-Dive Lessons across transformer internals, inference, RAG & agents
55 Staff-Level ML & System Design Case Studies with mathematical capacity estimates
AI Engineer Sheet & Exercises with worked solutions, self-checks, and code
100 Landmark Research Papers guided walkthroughs & progress tracking
14-Day Money-Back Guarantee — 100% full refund if you aren't satisfied
View Plans & Unlock All Lessons

From ₹167/mo (~$2/mo) · Cancel anytime · Instant activation

100% Risk-Free: 14-day no-questions-asked money-back guarantee