Skip to content
_CORE
AI & Agentic Systems Core Information Systems Cloud & Platform Engineering Data Platform & Integration Security & Compliance QA, Testing & Observability IoT, Automation & Robotics Mobile & Digital Banking & Finance Insurance Public Administration Defense & Security Healthcare Energy & Utilities Telco & Media Manufacturing Logistics & E-commerce Retail & Loyalty
References Technologies Blog Know-how Tools
About Collaboration Careers
CS EN DE
Let's talk

Terraform in Enterprise — Infrastructure as Code Lessons Learned

22. 08. 2022 Updated: 24. 03. 2026 1 min read CORE SYSTEMScloud
This article was published in 2022. Some information may be outdated.
Terraform in Enterprise — Infrastructure as Code Lessons Learned

Two years, 200+ Terraform modules, 3 cloud providers. We share our lessons learned from an enterprise Terraform setup.

Module Architecture

Hierarchy: root modules (per-environment, per-project) call shared modules (reusable components). Shared modules in a private Terraform Registry. Versioned, tested, documented.

State Management

Azure Storage Account + state locking. Separate state files per environment. Never manual terraform apply — everything goes through CI/CD. State backup every 6 hours.

Drift Detection

Someone changes a resource manually in the portal → drift. A daily terraform plan in CI detects drift and sends a notification. Zero tolerance: drift is fixed within 24 hours.

CI/CD Pipeline

PR → terraform plan → review → merge → terraform apply. Plan output as a PR comment — the reviewer sees exactly what will change. Sentinel policies: block unsafe changes (e.g., public S3 bucket).

IaC = Discipline, Not a Tool

Terraform is powerful, but without processes (review, testing, drift detection) it’s just another way to break infrastructure.

terraformiacinfrastructureazuredevops
Share:

CORE SYSTEMS

We build core systems and AI agents that keep operations running. 15 years of experience with enterprise IT.

Need help with implementation?

Our experts can help with design, implementation, and operations. From architecture to production.

Contact us
Need help with implementation? Schedule a meeting