Using Terrateam
GitHub Pull Requests
GitHub Pull Requests are used to trigger Terrateam operations. Terrateam comes with the following modes of operation:
Triggers
There are many ways a Terrateam operation can be triggered. Here are the most common triggers:
Open Pull Request
Comment terrateam plan
Comment terrateam apply
Plan
The Plan mode of operation will execute a terraform plan
against any changed
directories that contain a Terraform code change.
This operation is strictly read-only.
Apply
The Apply mode of operation will execute a terraform apply
against any plan
files that were produced in the Plan workflow step.
Apply will only apply plan files that have been approved according to Apply Requirements and Access Control.
Apply operations never produce Terraform plan files.
Typical Workflow
A typical Terrateam workflow usually looks like the following:
- Alice opens a pull request with a Terraform code change
- Terrateam triggers a Plan operation and comments the output to the pull request
- Bob approves the pull request
- Alice comments
terrateam apply
- Terrateam triggers an Apply operation and comments the apply output to the pull request
- Alice reviews the Apply output and merges the pull request