Interview Prep/Terraform/CI/CD and Automation

How do GitOps controllers compare with a CI pipeline for Terraform?

IntermediateProductionCI/CD and Automation
Answer

Controllers like Flux's tofu-controller reconcile Terraform in-cluster continuously, giving drift correction automatically but needing Kubernetes and careful blast-radius controls. A CI pipeline applies on merge and detects drift on a schedule, which is simpler and easier to approve. Continuous auto-correction of infrastructure is risky for stateful resources, so many teams only auto-apply low-risk stacks.

All Terraform questions Roadmap: Terraform in production

More on CI/CD and Automation