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.
More on CI/CD and Automation
Why run Terraform from a pipeline instead of laptops?BeginnerWhat stages does a good Terraform pull-request pipeline have?BeginnerHow do you make sure the apply runs exactly what was reviewed?IntermediateHow do you serialize applies to the same stack in CI?AdvancedShow a minimal GitHub Actions workflow for plan on PR.BeginnerHow does OIDC authentication from GitHub Actions to AWS work?Intermediate