Prepare Terraform changes
Use Terraform changes to prepare connection setup in a repository that manages cloud infrastructure with Terraform.
Map the Terraform root#
- Open Settings → Connections → Terraform changes.
- Start a new Terraform change.
- Select the repository and its Terraform root.
- Choose the cloud provider and provider name or alias.
- Select the connections owned by that root.
- For an AWS connection, choose the Terraform change: Add a Proofline IAM role, or Set the variable of an existing role when the root already declares one.
- To set a variable, enter the variables file in the root, such as
terraform.tfvars, and the variable name. - Save the entry and inspect the generated change.
Organization administrators and people with the Prepare Terraform changes permission can prepare a change. You need read access on GitHub to every repository you select. Preparing a change writes nothing to GitHub.
Connect the relevant AWS or Google Cloud account first. Choose the root that actually owns the connection's infrastructure.
To set a variable, the root must declare it and the file must not set it yet. Proofline appends the connection's values and keeps the rest of the file unchanged.
Review before authorizing#
Read the proposed files and scope before authorizing a pull request. Preparing a change and authorizing a repository write are separate steps. An edited variables file shows which lines stay unchanged and the lines Proofline adds.
A change appears only to people who can read every repository it touches on GitHub.
Use your team's normal review and Terraform apply workflow for the resulting change. A generated pull request does not mean the cloud configuration is applied.
Ask a teammate to open the pull request#
Opening the draft pull request needs write access to the repository on GitHub. An organization administrator with that access can open it from the review. Anyone else can choose Request pull request in the repository's section and add an optional note. Eligible teammates receive the shared request; the first response resolves it for everyone.
Teammates find the request under Reviews → Notifications and open it to reach the request page. There they can open the draft pull request, request changes, or decline. You can cancel the request until someone answers. You receive notifications about its outcome. A request shows only its repository's files.
Verify the connection#
After applying the change, return to the connection and run its verification. Resolve any remaining setup issues before relying on its evidence.