Skip to content

Commit 5059fe6

Browse files
committed
try to update diagram
1 parent 0ac1a14 commit 5059fe6

File tree

3 files changed

+164
-9
lines changed

3 files changed

+164
-9
lines changed

website/docs/cloud-docs/workspaces/variables/index.mdx

+14-9
Original file line numberDiff line numberDiff line change
@@ -130,18 +130,23 @@ Variables in the `.auto.tfvars` files take precedence over variables in the `ter
130130

131131
Consider an example workspace that has the following variables applied:
132132

133-
| Source | Scope | ACCESS_KEY | ACCESS_ID | VAR1 | KEY1 | VAR2 | KEY2 | replicas |
134-
| --------------------- | ---------------------- | ---------- | ---------- | ---- | ---- | ---- | ---- | -------- |
135-
| Command Line Argument | Run-Specific | | | | | | | `9` |
136-
| Local Environment | Run-Specific | | | | | | | `8` |
137-
| Variables | Workspace-Specific | | | `h` | | | | `1` |
138-
| A_Variable_Set | Workspace-Scoped | | | `y` | `x` | | | `2` |
139-
| B_Variable_Set | Project-Scoped | `g47fh474` | `874hf7u4` | | `b` | `z` | | `3` |
140-
| C_Variable_Set | Global | | | | | `a` | `c` | `4` |
133+
| Source | Scope | REGION | ACCESS_KEY | ACCESS_ID | VAR1 | KEY1 | VAR2 | KEY2 | replicas |
134+
| --------------------- | -------------------------- | ------------ | ---------- | ---------- | ---- | ---- | ---- | ---- | -------- |
135+
| 1_Variable_Set | Priority Global | "us-east-1" | | | | | | | |
136+
| 2_Variable_Set | Priority Project-Scoped | "us-east-2" | | | | | | | |
137+
| 3_Variable_Set | Priority Workspace-Scoped | "us-west-1" | | | | | | | |
138+
| Command Line Argument | Run-Specific | "us-west-2" | | | | | | | `9` |
139+
| Local Environment | Run-Specific | | | | | | | | `8` |
140+
| Variables | Workspace-Specific | | | | `h` | | | | `1` |
141+
| A_Variable_Set | Workspace-Scoped | | | | `y` | `x` | | | `2` |
142+
| B_Variable_Set | Project-Scoped | | `g47fh474` | `874hf7u4` | | `b` | `z` | | `3` |
143+
| C_Variable_Set | Global | | | | | | `a` | `c` | `4` |
141144

142145
When you trigger a run through the command line, Terraform Cloud applies the following variables:
143146

144-
- **Run-Specific:** `replicas` from the command line. That means `replicas` equals `9` for this run. Variables set from the command line take precedence over all other values, including the run-specific `TF_VAR_replicas` value set in your local environment.
147+
- **1_Variable_Set:** `REGION`. For this run, `REGION` equals `us-east-1`, overwriting the value in all other run-specific, workspace-specific, and variable set same key variables.
148+
149+
- **Run-Specific:** `replicas` from the command line. That means `replicas` equals `9` for this run. If a variable set is priority, it takes precedence over all other values set with a more specific scope. Here the TF_VAR_region is "us-east-1", because the variable from the priority global 1_Variable_Set takes precedence. Without priority variable sets, variables set from the command line take precedence over all other values, including the run-specific `TF_VAR_replicas` value set in your local environment.
145150

146151
- **Workspace-Specific:** `VAR1`. For this run, `VAR1` equals `h`, overwriting the value in A_Variable_Set.
147152

-39.4 KB
Loading

website/yarn.lock

+150
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2+
# yarn lockfile v1
3+
4+
5+
6+
version "12.2.1"
7+
resolved "https://registry.yarnpkg.com/@next/env/-/env-12.2.1.tgz#083cc88469931fc3dc32bb633623321c29971a09"
8+
integrity sha512-lz3TJKIvbdGRUsUr/+h3vy7XvBNGTGzHwhurk5AtqrABj4Zyo70xbshcI7YQTNUK4x9OA/E+SOcXvVx0DHmFRw==
9+
10+
11+
version "12.2.1"
12+
resolved "https://registry.yarnpkg.com/@next/swc-android-arm-eabi/-/swc-android-arm-eabi-12.2.1.tgz#26a4363bd3857b934e7ad63aa1647d83b380ce1f"
13+
integrity sha512-Gk7fvo1McA9gues9hixoeoxKnvvUusW0P+fya4ZAU3us+bQm1EqSoDrnOrUsdsgwIPQ3HobOJPY5C3xvKOl/tA==
14+
15+
16+
version "12.2.1"
17+
resolved "https://registry.yarnpkg.com/@next/swc-android-arm64/-/swc-android-arm64-12.2.1.tgz#28c7e964208e80d4b3ff791f323fbe425eae26fe"
18+
integrity sha512-J+QwWRm2+bOtacZFahoplX3dCYGDpou86VjfcE+M5/E0UCtBmZ6JvItyV4scK8wSKHQQUWq8DmOEm/C0lhsSRQ==
19+
20+
21+
version "12.2.1"
22+
resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-12.2.1.tgz#ae68b105956c985214219d4f676b2e57c882d5ae"
23+
integrity sha512-teSfpKHdHQER4FVVCdvS0fHff35Gh4LB2DZ2eNAateIluP2Gnl+tT881MeM4Knvl2Mvm3Z3vtSJNthVoveJnMA==
24+
25+
26+
version "12.2.1"
27+
resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-12.2.1.tgz#27da7988d01847b642b8d5c274f14bd82439fbb0"
28+
integrity sha512-flA1H+9krrINtdWoXBzeESkdIV34OKX0+Lnqd90J1nsERTXntYy6CNOMxMtv1otAcnFy7EHYJQIL8URuu/2XXg==
29+
30+
31+
version "12.2.1"
32+
resolved "https://registry.yarnpkg.com/@next/swc-freebsd-x64/-/swc-freebsd-x64-12.2.1.tgz#0b4cd5c1707218cac86a7a58e116c74998da6286"
33+
integrity sha512-SkAjp7B7aBxAsRVMZGiAp/qMkh65PLzYuLBTsBSu+4fxFuKF7MAEgaIUhvC8zzD58A+Y9yrY/3813bhtrwkcuA==
34+
35+
36+
version "12.2.1"
37+
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm-gnueabihf/-/swc-linux-arm-gnueabihf-12.2.1.tgz#3b93a18f1264a88985bc3a01e0067aa1afe0ab72"
38+
integrity sha512-V7ov2LXrLWuYVH/syzrzpmwWumg5rCh0siwOPNCRzVkrpgP8WoIRNdeZ/NQIj0ng+kq7gDF1jib583Lk0wbDeQ==
39+
40+
41+
version "12.2.1"
42+
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-12.2.1.tgz#9887a772f96680afa440ac3e6f716fd20d7f4178"
43+
integrity sha512-HlnDQD3r4YqCj2gu6uo86oEM0ixBsyKLaPcZcGwWAD5mFG5R4zzTZG7BO2wJkGWmkzijHluE14dlTmfzc8jdEQ==
44+
45+
46+
version "12.2.1"
47+
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-12.2.1.tgz#7ed5981b7afd3d9c4678ff36e1dd7f06a5f0c3d6"
48+
integrity sha512-P8AkWd4RHbuF24ol3jk2akXpntcDI0gv5uD7eMpAOXb8W2A6y/sv0tKNSGUV3efSutOyu23jNn2EiTNxHgU4NQ==
49+
50+
51+
version "12.2.1"
52+
resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-12.2.1.tgz#0bb3e5162b189cb4d88761ff1781896781c7bd65"
53+
integrity sha512-ZbsM+rIMqK6xi3lovspzPJoIPre3LglKrCXKLkln7rD0uiymzfLhS2VCj8u4qRynz22iAzuI4mJNpZa3AsJFrA==
54+
55+
56+
version "12.2.1"
57+
resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-12.2.1.tgz#64e983e38a5e86bc613bfc46e0b92a1787ba5392"
58+
integrity sha512-JeATguMe37bviPwkIUjO7T3kcefMBQwJFLhkFTaJYGmPm12EsW1FtKcg87AI87xdGvfrHQKlM3phNaG/dkneTQ==
59+
60+
61+
version "12.2.1"
62+
resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-12.2.1.tgz#2394b05230f0011a01010524e25d8f4ec71e27e1"
63+
integrity sha512-8dal/MdrVshDKYBtloJw/RhJx140KUoRRYoRfpJ9oAdP8UXBdR0haKfg5EdOy98t8Q76apArxPsK7DfwoR1f3w==
64+
65+
66+
version "12.2.1"
67+
resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-12.2.1.tgz#90acd18e63e7620992ee3f7d3dec80ccc7120f9e"
68+
integrity sha512-uSAoOBpCp4oxVD9gTY1f27hr9xNLEOCglxZPH1+FonHpM5n9Sp4H01uQHWE/Y26iHmJeUJAWxtRxEYylnO4U9A==
69+
70+
71+
version "12.2.1"
72+
resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-12.2.1.tgz#f3b186c8f7278656c7690a64f362d0d5b1d738af"
73+
integrity sha512-gx4aLMAZAVjtShiCrUSszoxnzBWJWf09Lkey6mcc0jFZjbz4xkyDbp53V229DtOYTUL4t0IZJ0I7+ftQ5CYIjg==
74+
75+
76+
version "0.4.2"
77+
resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.4.2.tgz#ed1f6997ffbc22396665d9ba74e2a5c0a2d782f8"
78+
integrity sha512-556Az0VX7WR6UdoTn4htt/l3zPQ7bsQWK+HqdG4swV7beUCxo/BqmvbOpUkTIm/9ih86LIf1qsUnywNL3obGHw==
79+
dependencies:
80+
tslib "^2.4.0"
81+
82+
caniuse-lite@^1.0.30001332:
83+
version "1.0.30001363"
84+
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001363.tgz#26bec2d606924ba318235944e1193304ea7c4f15"
85+
integrity sha512-HpQhpzTGGPVMnCjIomjt+jvyUu8vNFo3TaDiZ/RcoTrlOq/5+tC8zHdsbgFB6MxmaY+jCpsH09aD80Bb4Ow3Sg==
86+
87+
nanoid@^3.1.30:
88+
version "3.3.4"
89+
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.4.tgz#730b67e3cd09e2deacf03c027c81c9d9dbc5e8ab"
90+
integrity sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==
91+
92+
next@^12.1.0:
93+
version "12.2.1"
94+
resolved "https://registry.yarnpkg.com/next/-/next-12.2.1.tgz#b487dc598ef1373a1b1275d68531a7088fe5653d"
95+
integrity sha512-090KB5CZRlLG/GWxb8tA1ZFwqL8OfpUtH4mXA7POuisa6NL5ihiAZhfk5nRBdPHvkXuSt0n7zQaVym6SrT3Wiw==
96+
dependencies:
97+
"@next/env" "12.2.1"
98+
"@swc/helpers" "0.4.2"
99+
caniuse-lite "^1.0.30001332"
100+
postcss "8.4.5"
101+
styled-jsx "5.0.2"
102+
use-sync-external-store "1.1.0"
103+
optionalDependencies:
104+
"@next/swc-android-arm-eabi" "12.2.1"
105+
"@next/swc-android-arm64" "12.2.1"
106+
"@next/swc-darwin-arm64" "12.2.1"
107+
"@next/swc-darwin-x64" "12.2.1"
108+
"@next/swc-freebsd-x64" "12.2.1"
109+
"@next/swc-linux-arm-gnueabihf" "12.2.1"
110+
"@next/swc-linux-arm64-gnu" "12.2.1"
111+
"@next/swc-linux-arm64-musl" "12.2.1"
112+
"@next/swc-linux-x64-gnu" "12.2.1"
113+
"@next/swc-linux-x64-musl" "12.2.1"
114+
"@next/swc-win32-arm64-msvc" "12.2.1"
115+
"@next/swc-win32-ia32-msvc" "12.2.1"
116+
"@next/swc-win32-x64-msvc" "12.2.1"
117+
118+
picocolors@^1.0.0:
119+
version "1.0.0"
120+
resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c"
121+
integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==
122+
123+
124+
version "8.4.5"
125+
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.5.tgz#bae665764dfd4c6fcc24dc0fdf7e7aa00cc77f95"
126+
integrity sha512-jBDboWM8qpaqwkMwItqTQTiFikhs/67OYVvblFFTM7MrZjt6yMKd6r2kgXizEbTTljacm4NldIlZnhbjr84QYg==
127+
dependencies:
128+
nanoid "^3.1.30"
129+
picocolors "^1.0.0"
130+
source-map-js "^1.0.1"
131+
132+
source-map-js@^1.0.1:
133+
version "1.0.2"
134+
resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c"
135+
integrity sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==
136+
137+
138+
version "5.0.2"
139+
resolved "https://registry.yarnpkg.com/styled-jsx/-/styled-jsx-5.0.2.tgz#ff230fd593b737e9e68b630a694d460425478729"
140+
integrity sha512-LqPQrbBh3egD57NBcHET4qcgshPks+yblyhPlH2GY8oaDgKs8SK4C3dBh3oSJjgzJ3G5t1SYEZGHkP+QEpX9EQ==
141+
142+
tslib@^2.4.0:
143+
version "2.4.0"
144+
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.0.tgz#7cecaa7f073ce680a05847aa77be941098f36dc3"
145+
integrity sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==
146+
147+
148+
version "1.1.0"
149+
resolved "https://registry.yarnpkg.com/use-sync-external-store/-/use-sync-external-store-1.1.0.tgz#3343c3fe7f7e404db70f8c687adf5c1652d34e82"
150+
integrity sha512-SEnieB2FPKEVne66NpXPd1Np4R1lTNKfjuy3XdIoPQKYBAFdzbzSZlSn1KJZUiihQLQC5Znot4SBz1EOTBwQAQ==

0 commit comments

Comments
 (0)