Skip to content

Commit

Permalink
Merge pull request #10 from hashicorp/repo-sync
Browse files Browse the repository at this point in the history
repo sync
  • Loading branch information
hashibot-web authored Oct 5, 2022
2 parents 13ee000 + 5ad7a2c commit 25c21af
Showing 1 changed file with 8 additions and 2 deletions.
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

0 comments on commit 25c21af

Please sign in to comment.