Module 18 · Lesson 10 of 13Pro
Infrastructure as code: Terraform for data platforms
Level Intermediate
Reading time 16 min When you finish this page you can Describe a data platform’s buckets, IAM roles, Snowflake warehouses and grants, and Kafka topics as Terraform resources, and read the plan Terraform makes for a change. Store Terraform state safely, with locking and versioning, and split it so one mistake can’t reach the whole platform. Catch a dangerous plan in review and drift in production, and protect resources that hold data from being replaced. Decide what belongs in Terraform and what stays with the data itself, dbt and the engines. Why this matters
A data platform is hundreds of cloud objects whose settings decide who can read customer data, what gets deleted and what the bill is. Set by hand, those settings can’t be reviewed, rebuilt or checked. Written as code, every change is a reviewed plan, and a change made outside the code shows up the next morning.
Play video · 5 min · Prointernals Pro
Black Friday Sale sale
Flat 50% off everything. Our biggest sale ever.
Sale ends this week
10K+ engineers already learning
One plan. Every course. All live and upcoming courses Every paper guide All 40+ tools 320+ startups with hiring contacts Curated external resources A fifth role reads the lake
At 09:20 IST on Monday 26 March 2029, Meera opens an alert from Kartly’s audit trail. Over the weekend, a role called ml-notebooks-v2 made 41,000 reads on kartly-lake-prod. Only four service roles are allowed to read that bucket. A fifth one is an incident.
Our biggest sale ever · Black Friday
Flat 50% Off
Pro
Continue reading Unlock every course, now and later
System Design, live AI Engineering, live Data Engineering, live Machine Learning Engineering, live Inference Engineering, coming soon AI Research, coming soon Performance Engineering, coming soon Agent & Harness Engineering, coming soon LLM Fine-tuning, coming soon LLM Pre-training & Post-training, coming soon Reinforcement Learning, coming soon AI Infrastructure & Platform Engineering, coming soon AI Evaluation & Safety, coming soon Forward Deployed Engineering, coming soon Cloud Computing, coming soon DevOps, coming soon System Design AI Engineering Inference EngineeringSoon AI ResearchSoon Performance EngineeringSoon Agent & Harness EngineeringSoon System Design AI Engineering Inference EngineeringSoon AI ResearchSoon Performance EngineeringSoon Agent & Harness EngineeringSoon
Data Engineering LLM Fine-tuningSoon LLM Pre-training & Post-trainingSoon Reinforcement LearningSoon AI Infrastructure & Platform EngineeringSoon Data Engineering LLM Fine-tuningSoon LLM Pre-training & Post-trainingSoon Reinforcement LearningSoon AI Infrastructure & Platform EngineeringSoon
Machine Learning Engineering AI Evaluation & SafetySoon Forward Deployed EngineeringSoon Cloud ComputingSoon DevOpsSoon Machine Learning Engineering AI Evaluation & SafetySoon Forward Deployed EngineeringSoon Cloud ComputingSoon DevOpsSoon
50% off · Annual and Lifetime
BLACKFRIDAY50 Applied at checkout
View all plans → · Already Pro? Sign in
Previous
CI/CD for data: environments, reviews and deploys
Next lesson
Platform teams and data mesh: who owns what
On this page 1 / 11
A fifth role reads the lake Config, state and the real cloud Writing the platform down Where the state lives A plan in every pull request Drift: catching the change made by hand What stays out of Terraform Try it yourself Common mistakes Check your understanding Summary
↑ ↓ to move Enter to open Esc to close