When Modified
When Modified can be used to match pull request file changes with Autoplan and Autoapply.
Terrateam Configuration
Terrateam behavior can be configured via a config.yml
. This file is located in
a directory named .terrateam
at the root of your Terraform repository:
.terrateam/config.yml
.
See Configuration documentation for details.
Configuration
Top-level key: when_modified
See Configuration Reference documentation for details.
Key | Type | Description |
---|---|---|
file_patterns | List | List of file globs to identify changes in a directory. Always relative to the root of the repository. Prefix with ! to exclude a file glob. |
autoplan | Boolean | Automatically run Plan on a new pull request or an update on an existing one. |
autoplan_draft_pr | Boolean | Automatically run Plan on a new draft pull request or an update on an existing one. |
autoapply | Boolean | Automatically run Apply after merging a pull request. |
Default configuration:
when_modified:
file_patterns: ["**/*.tf", "**/*.tfvars"]
autoplan: true
autoplan_draft_pr: true
autoapply: false