internalsGet Pro

Module 18 · Lesson 10 of 13Pro

Infrastructure as code: Terraform for data platforms

Level
Intermediate
Topic
Scale, performance and cost
Reading time
16 min

When you finish this page you can

  1. 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.
  2. Store Terraform state safely, with locking and versioning, and split it so one mistake can’t reach the whole platform.
  3. Catch a dangerous plan in review and drift in production, and protect resources that hold data from being replaced.
  4. Decide what belongs in Terraform and what stays with the data itself, dbt and the engines.
  1. Cloud basics: accounts, access and networks14 min
  2. Access control: roles, rows and columns17 min
  3. Data platform costs: storage, compute and transfer17 min

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

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan