Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions website/docs/cloud-docs/workspaces/variables/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,15 @@ For example, if you apply `A_Variable_Set` and `B_Variable_Set` to the same work

Non-global variable sets always take precedence over global variable sets that are applied to all workspaces within an organization. Terraform does not allow global variable sets to contain variables with the same key, so they cannot conflict.

### 6. `auto.tfvars` Variable Files
### 6. `*.auto.tfvars` Variable Files

Variables in the Terraform Cloud workspace and variables provided through the command line always overwrite variables with the same key from files ending in `auto.tfvars`.
Variables in the Terraform Cloud workspace and variables provided through the command line always overwrite variables with the same key from files ending in `.auto.tfvars`.

### 7. `terraform.tfvars` Variable File

Variables in the `.auto.tfvars` files take precedence over variables in the `terraform.tfvars` file.

-> **Note:** Although Terraform Cloud uses variables from `terraform.tfvars`, Terraform Enterprise currently ignores this file.

### Precedence Example

Expand Down