Terraform PR agent
Infrastructure-as-code (IaC) teams often need to translate FinOps recommendations into Terraform changes, review them, and merge them through existing change-management workflows. The Terraform PR agent connects your GitHub repositories to DoiT Cloud Intelligence and opens pull requests with proposed Terraform remediations via any custom CloudFlow flow using the appropriate CloudFlow action node.
The agent does not apply changes directly to your cloud environment. Instead, it proposes minimal Terraform changes through GitHub pull requests so your team stays in control of what gets deployed.
-
The Terraform PR agent is available as an early access feature. Contact your DoiT account team to request access.
-
During early access, DoiT provides a CloudFlow that selects actionable Insights and starts the agent. That CloudFlow path is the current early access workflow—not the long-term only way to run remediations.
We are working on providing the short-term first-class support to create a PR remediation directly via Insights, conversing with the agent straight from GitHub to provide additional context and setup new guardrails without leaving the PR, and triggering PR agent remediations via our DoiT remote MCP server to integrate seamlessly within your own agentic workflows.
Benefits
-
Faster time to remediate: Reduce the handoff time between identifying a cost or configuration issue and delivering a reviewable code change.
-
IaC-native workflow: Remediations arrive as pull requests in your existing Terraform repositories, aligned with how CloudOps teams already manage infrastructure changes.
-
Human in the loop: All changes go through your standard GitHub review and merge process. The agent never runs
terraform applyor modifies cloud resources directly. -
Signal-driven automation: The agent responds to actionable DoiT signals you already monitor, including Insights. During early access, those signals reach the agent through a DoiT-provided CloudFlow.
-
Privacy first by design: No sensitive Terraform state data access required.
Key features
-
GitHub integration: Connect Terraform repositories through the DoiT GitHub App so the agent can read your codebase and open remediation pull requests.
-
No Terraform state access: The agent infers where cloud resources are defined in your HCL codebase. No sensitive Terraform state data sharing is required.
-
Context-aware pull requests: Remediation pull requests include the originating signal context, proposed changes, tradeoffs, and cost context when available, so reviewers do not need to leave the PR.
-
Local validation: The agent runs local checks (such as formatting and linting) on proposed changes before opening a pull request.
-
Provides official support for all published Terraform provider versions across the major hyperscalers (AWS, Google Cloud, and Azure) dating back up to four years, including workarounds for known bugs and gotchas.
See Connect and disconnect to set up GitHub access, and Work with remediations to understand the end-to-end workflow.