Have an agent repeatedly write, validate, test, and revise Terraform until it reaches a working state before handing deployment to a controlled pipeline.
From DevOps Q&A: Crossplane, AI Agents, GitOps Terraform, and Career Tips by DevOps & AI Toolkit