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:
See Configuration documentation for details.
Multiple versions of the Terraform CLI can be configured to be used for Terrateam operations. There are multiple ways to specify the version. The versions are evaluated in the order described below where the version is taken from the first match.
.terraform-versionfile in the directory
terraformis being executed in, for example
.terraform-versionfile in the root directory of the repository.
- A custom workflow in
We recommend that a default Terraform CLI version is explicitly specified in the repository. Terrateam periodically upgrades the version of Terraform and specifying the version explicitly guarantees that the version is consistent between runs.
.terraform-version in the Directory
A version can be specified in the
.terraform-version file in any directory.
terraform is executed, the specified version will be used.
.terraform-version in the Root Directory
.terraform-version file can also be put in the root directory of the
The Terraform version can be specified in a workflow:
dirs: ec2/us-east-1/production: tags: [ec2, us-east-1, production] ec2/us-west-1/production: tags: [ec2, us-west-1, production] workflows: - tag_query: ec2 us-east-1 production terraform_version: 1.2.2 - tag_query: ec2 us-west-1 production terraform_version: 0.15.5
A default version can be specified in the