devops8 min read

Shifting left at enterprise scale: How Cloudflare manages infrastructure with IaC

5 similar posts
  • Terraform
  • Atlantis
  • GitLab
  • Open Policy Agent
  • Jira
  • Cloudflare Terraform Provider
  • cf-terraforming

AI Summary

Cloudflare details how its security division transitioned hundreds of production accounts from manual dashboard clicks to an Infrastructure as Code (IaC) operating model. Utilizing Terraform, a custom CI/CD pipeline with Atlantis and GitLab, Open Policy Agent (OPA) for Policy as Code, and automated drift detection, the organization scaled security governance, eliminated configuration errors, and enforced continuous compliance without stalling engineering velocity.

Key Takeaways

  • Highlights the use of Terraform, Atlantis, GitLab, and Open Policy Agent (OPA) in an enterprise environment.
  • Outlines practical lessons on handling resource imports, configuration drift, and tool feature parity.
  • Demonstrates how internal dogfooding ('Customer Zero') drives product improvement.

Why it matters

Managing infrastructure at a global scale introduces severe risks where small configuration errors can lead to widespread outages. This article provides a blueprint for engineering teams looking to implement shift-left security, automated policy checks, and drift detection across multiple production accounts.

Conversation0

What would you add from your experience?

Checking your session…

Every good conversation starts with one perspective.