Skip to content

Commit

Permalink
Update terraform-versions.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethtxytqw authored Feb 8, 2020
1 parent 885ad26 commit 3ce88eb
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion runatlantis.io/docs/terraform-versions.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
You can customize which version of Terraform Atlantis defaults to by setting
the `--default-tf-version` flag (ex. `--default-tf-version=v0.12.0`).

## Via `atlantis.yaml`
If you wish to use a different version than the default for a specific repo or project, you need
to create an `atlantis.yaml` file and set the `terraform_version` key:
```yaml
Expand All @@ -13,8 +14,16 @@ projects:
```
See [atlantis.yaml Use Cases](repo-level-atlantis-yaml.html#terraform-versions) for more details.
## Via terraform config
Alternatively, one can use the terraform configuration block's `required_version` key to specify an *exact* version:
```tf
terraform {
required_version = "0.12.0"
}
```
See [Terraform `required_version`](https://www.terraform.io/docs/configuration/terraform.html#specifying-a-required-terraform-version) for reference.

::: tip NOTE
Atlantis will automatically download the version specified.
:::

0 comments on commit 3ce88eb

Please sign in to comment.