Skip to content

Commit

Permalink
Update documentation for Terraform distribution
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Borg <andrew.b.borg@gmail.com>
  • Loading branch information
abborg committed Dec 17, 2024
1 parent ac3a7f6 commit fc81e67
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 8 deletions.
15 changes: 15 additions & 0 deletions runatlantis.io/docs/repo-level-atlantis-yaml.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ projects:
branch: /main/
dir: .
workspace: default
terraform_distribution: terraform
terraform_version: v0.11.0
delete_source_branch_on_merge: true
repo_locking: true # deprecated: use repo_locks instead
Expand Down Expand Up @@ -262,6 +263,20 @@ See [Custom Workflow Use Cases: Terragrunt](custom-workflows.md#terragrunt)

See [Custom Workflow Use Cases: Running custom commands](custom-workflows.md#running-custom-commands)

### Terraform Distributions

If you'd like to use a different distribution of Terraform than what is set
by the `--default-tf-version` flag, then set the `terraform_distribution` key:

```yaml
version: 3
projects:
- dir: project1
terraform_distribution: opentofu
```

Atlantis will automatically download and use this distribution. Valid values are `terraform` and `opentofu`.

### Terraform Versions

If you'd like to use a different version of Terraform than what is in Atlantis'
Expand Down
20 changes: 12 additions & 8 deletions runatlantis.io/docs/server-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,16 @@ and set `--autoplan-modules` to `false`.
Note that the atlantis user is restricted to `~/.atlantis`.
If you set the `--data-dir` flag to a path outside of Atlantis its home directory, ensure that you grant the atlantis user the correct permissions.

### `--default-tf-distribution`

```bash
atlantis server --default-tf-distribution="terraform"
# or
ATLANTIS_DEFAULT_TF_DISTRIBUTION="terraform"
```

Which TF distribution to use. Can be set to `terraform` or `opentofu`.

### `--default-tf-version`

```bash
Expand Down Expand Up @@ -1258,14 +1268,8 @@ This is useful when you have many projects and want to keep the pull request cle
Namespace for emitting stats/metrics. See [stats](stats.md) section.

### `--tf-distribution`

```bash
atlantis server --tf-distribution="terraform"
# or
ATLANTIS_TF_DISTRIBUTION="terraform"
```

Which TF distribution to use. Can be set to `terraform` or `opentofu`.
<Badge text="Deprecated" type="warn"/>
Deprecated for `--repo-allowlist`.

### `--tf-download`

Expand Down

0 comments on commit fc81e67

Please sign in to comment.