Terraform Abstractions for Safety and Power
summary
Segment runs Terraform to manage ~349 services, ~14,000 containers, tens of thousands of AWS resources and handles 90 billion messages/month at ~100k req/s. The team enforces remote state (S3 or terraform Enterprise), splits state per team, and builds reusable modules like a shared worker module that embeds auto‑scaling, rendered ECS task JSON, IAM policies, and DataDog alerts. Result: ~30 engineers make 30–50 daily applies, cost tagging and CI checks drove a seven‑figure AWS savings and far fewer manual outages.
AI-written summary · about
