---
title: "Terraform pull request review | Proofline"
description: "Proofline reviews Terraform and OpenTofu changes at the exact commit under review, and confirms each apply from the GitHub Actions run that performs it."
url: https://proofline.sh/blog/terraform-pull-request-review/
---

[All posts](/blog/)

# Terraform pull request review

Proofline reviews Terraform and OpenTofu changes at the exact commit under review, and confirms each apply from the GitHub Actions run that performs it. A review can compare a declaration with the configuration Kian's cloud inventory records for the affected resources.

Deployment failures The Proofline team October 7, 2026 2 min read

## What Proofline reads

-   The `.tf` files at the pull request's pinned commit, with the rest of the change. Proofline reads an OpenTofu root as it reads a Terraform root.
-   After the change merges, the logs of the GitHub Actions run that applies it. Only a completed `terraform apply` or `tofu apply` step confirms the apply; a plan or a validation step never does.
-   Configuration from Kian’s inventory for enrolled cloud environments. Examples include an [RDS instance](/integrations/aws-rds/), a [Cloud Run service](/integrations/google-cloud-run/) or a PostgreSQL Flexible Server in an [Azure subscription](/help/connect-azure/).

Proofline reads no Terraform state beyond the object metadata that a connection check reads, and it reads no plan output.

## A refactor that replaces a database

In an illustrative case, a pull request moves a database into a new module. The configuration is valid, and the diff looks like a tidy refactor.

The base commit declares the database at `aws_db_instance.orders`. The pull request declares it at `module.database.aws_db_instance.this` and adds no `moved` block. Terraform treats the two addresses as different resources. If state still binds the instance to `aws_db_instance.orders`, the next apply would destroy it and create a new one. Kian's RDS inventory records an instance with the identifier both declarations set.

The finding cites both addresses and the recorded instance to show which database is at risk. Because Proofline reads no state, the finding states that the replacement depends on that binding: an earlier `terraform state mv` to the new address would leave nothing to replace. It suggests a `moved` block so Terraform keeps the resource either way.

## What stays with your pipeline

Proofline never runs Terraform or its providers, and it never plans or applies. Keep applying changes through your existing GitHub Actions workflow. Proofline reports an apply only after it reads the completed apply step.

Check the [Terraform integration](/integrations/terraform/) for what each review reads.

## Questions

### Does Proofline run terraform plan?

No. Proofline never runs Terraform against your infrastructure, and it never plans or applies. It reads the configuration at the commit and the logs of the workflow run that applies it.

### Does Proofline read Terraform state?

No. Proofline reads no state beyond the object metadata that a connection check reads. A review compares configuration at the commit with the resource records in Kian's cloud inventory, so a finding that depends on which address state binds a resource to says so.

### Does Proofline work with OpenTofu?

Yes. OpenTofu uses the same configuration language, so Proofline reads an OpenTofu root as it reads a Terraform root and confirms applies from the `tofu apply` step.

## One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. [Eligibility and fair-use terms](/free-code-review/).

[Start free with GitHub](https://proofline.sh/orgs/plan?offer=free_month)

## Stay up to date

Get new blog posts and Proofline product news by email.

## Related reading

-   ### [AI code review for AWS](/blog/aws-deployment-review/)
    
    Deployment failures The Proofline team October 7, 2026 2 min read
    
-   ### [GitHub Actions workflow review](/blog/github-actions-workflow-review/)
    
    Deployment failures The Proofline team October 7, 2026 1 min read
