Skip to content

Commit da1b955

Browse files
committed
link stacks references to m-a refs
1 parent 7a29850 commit da1b955

File tree

6 files changed

+18
-38
lines changed

6 files changed

+18
-38
lines changed

content/terraform/v1.13.x/docs/language/block/stack/tfcomponent/component.mdx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ component "storage" {
128128

129129
The keys in the `providers` map must match the provider names that the source module expects, and the values must reference providers declared in your component configuration. Learn more about [Declaring providers in Stacks](/terraform/language/stacks/component/declare-providers).
130130

131+
`providers` is a **meta-argument**. Meta-arguments are built into the Terraform language and control how Terraform creates and manages resources. Refer to the [`providers` reference](/terraform/language/meta-arguments/providers) for details about how the argument works.
132+
131133
#### Summary
132134

133135
- Data type: Map
@@ -178,10 +180,7 @@ component "app_server" {
178180

179181
You do not need to include the dependant component’s outputs in the `depends_on` list because Terraform automatically recognizes those dependencies.
180182

181-
#### Summary
182-
183-
- Data type: List of references
184-
- Default: None
183+
`depends_on` is a **meta-argument**. Meta-arguments are built into the Terraform language and control how Terraform creates and manages resources. Refer to the [`depends_on` reference](/terraform/language/meta-arguments/depends_on) for details about how the argument works.
185184

186185
### `for_each`
187186

@@ -217,10 +216,7 @@ component "<LABEL>" {
217216

218217
When you use `for_each`, Terraform creates one component instance for each item in the collection. You can reference individual instances using `component.<LABEL>[<KEY>]` syntax.
219218

220-
#### Summary
221-
222-
- Data type: Map or Set
223-
- Default: None
219+
`for_each` is a **meta-argument**. Meta-arguments are built into the Terraform language and control how Terraform creates resources. Refer to the [`for_each` reference](/terraform/language/meta-arguments/for_each) for details about how the argument works.
224220

225221
## Examples
226222

content/terraform/v1.13.x/docs/language/block/stack/tfcomponent/provider.mdx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,7 @@ provider "<NAME>" "<ALIAS>" {
111111

112112
When you use `for_each`, you can reference individual provider instances using `provider.<PROVIDER_NAME>.<ALIAS>[<KEY>]` syntax in your `component` blocks.
113113

114-
#### Summary
115-
116-
- Data type: Map or Set
117-
- Default: None
114+
`for_each` is a **meta-argument**. Meta-arguments are built into the Terraform language and control how Terraform creates and manages resources. Refer to the [`for_each` reference](/terraform/language/meta-arguments/for_each) for details about how the argument works.
118115

119116
## Examples
120117

content/terraform/v1.13.x/docs/language/block/stack/tfcomponent/removed.mdx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ removed {
104104

105105
### `providers`
106106

107-
The `providers` argument maps provider names to the providers that the component you want to remove uses. HCP Terraform needs these provider configurations to properly remove the component's resources.
107+
The `providers` argument is required. It maps provider names to the providers that the component you want to remove uses. HCP Terraform needs these provider configurations to properly remove the component's resources.
108108

109109
```hcl
110110
removed {
@@ -119,11 +119,7 @@ removed {
119119

120120
The provider mapping must include every provider that the component's module requires for resource destruction.
121121

122-
#### Summary
123-
124-
- Data type: Map
125-
- Default: None
126-
- Required: Yes
122+
`providers` is a **meta-argument**. Meta-arguments are built into the Terraform language and control how Terraform creates and manages resources. Refer to the [`providers` reference](/terraform/language/meta-arguments/providers) for details about how the argument works.
127123

128124
### `for_each`
129125

@@ -161,6 +157,8 @@ removed {
161157

162158
The `for_each` meta-argument is useful when you want to remove components from specific regions or environments.
163159

160+
`for_each` is a **meta-argument**. Meta-arguments are built into the Terraform language and control how Terraform creates and manages resources. Refer to the [`for_each` reference](/terraform/language/meta-arguments/for_each) for details about how the argument works.
161+
164162
#### Summary
165163

166164
- Data type: Map or Set

content/terraform/v1.14.x (beta)/docs/language/block/stack/tfcomponent/component.mdx

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,7 @@ component "storage" {
128128

129129
The keys in the `providers` map must match the provider names that the source module expects, and the values must reference providers declared in your component configuration. Learn more about [Declaring providers in Stacks](/terraform/language/stacks/component/declare-providers).
130130

131-
#### Summary
132-
133-
- Data type: Map
134-
- Default: None
135-
- Required: Yes
131+
`providers` is a **meta-argument**. Meta-arguments are built into the Terraform language and control how Terraform creates and manages resources. Refer to the [`providers` reference](/terraform/language/meta-arguments/providers) for details about how the argument works.
136132

137133

138134
### `inputs`
@@ -175,13 +171,9 @@ component "app_server" {
175171
# ...
176172
}
177173
```
178-
179174
You do not need to include the dependant component’s outputs in the `depends_on` list because Terraform automatically recognizes those dependencies.
180175

181-
#### Summary
182-
183-
- Data type: List of references
184-
- Default: None
176+
`depends_on` is a **meta-argument**. Meta-arguments are built into the Terraform language and control how Terraform creates and manages resources. Refer to the [`depends_on` reference](/terraform/language/meta-arguments/depends_on) for details about how the argument works.
185177

186178
### `for_each`
187179

@@ -217,10 +209,8 @@ component "<LABEL>" {
217209

218210
When you use `for_each`, Terraform creates one component instance for each item in the collection. You can reference individual instances using `component.<LABEL>[<KEY>]` syntax.
219211

220-
#### Summary
212+
`for_each` is a **meta-argument**. Meta-arguments are built into the Terraform language and control how Terraform creates resources. Refer to the [`for_each` reference](/terraform/language/meta-arguments/for_each) for details about how the argument works.
221213

222-
- Data type: Map or Set
223-
- Default: None
224214

225215
## Examples
226216

content/terraform/v1.14.x (beta)/docs/language/block/stack/tfcomponent/provider.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ provider "<NAME>" "<ALIAS>" {
111111

112112
When you use `for_each`, you can reference individual provider instances using `provider.<PROVIDER_NAME>.<ALIAS>[<KEY>]` syntax in your `component` blocks.
113113

114+
`for_each` is a **meta-argument**. Meta-arguments are built into the Terraform language and control how Terraform creates and manages resources. Refer to the [`for_each` reference](/terraform/language/meta-arguments/for_each) for details about how the argument works.
115+
114116
#### Summary
115117

116118
- Data type: Map or Set

content/terraform/v1.14.x (beta)/docs/language/block/stack/tfcomponent/removed.mdx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ removed {
104104

105105
### `providers`
106106

107-
The `providers` argument maps provider names to the providers that the component you want to remove uses. HCP Terraform needs these provider configurations to properly remove the component's resources.
107+
The `providers` argument is required. It maps provider names to the providers that the component you want to remove uses. HCP Terraform needs these provider configurations to properly remove the component's resources.
108108

109109
```hcl
110110
removed {
@@ -119,11 +119,7 @@ removed {
119119

120120
The provider mapping must include every provider that the component's module requires for resource destruction.
121121

122-
#### Summary
123-
124-
- Data type: Map
125-
- Default: None
126-
- Required: Yes
122+
`providers` is a **meta-argument**. Meta-arguments are built into the Terraform language and control how Terraform creates and manages resources. Refer to the [`providers` reference](/terraform/language/meta-arguments/providers) for details about how the argument works.
127123

128124
### `for_each`
129125

@@ -158,8 +154,9 @@ removed {
158154

159155
</Tabs>
160156

157+
You can use `for_each` to remove components from specific regions or environments.
161158

162-
The `for_each` meta-argument is useful when you want to remove components from specific regions or environments.
159+
`for_each` is a **meta-argument**. Meta-arguments are built into the Terraform language and control how Terraform creates and manages resources. Refer to the [`for_each` reference](/terraform/language/meta-arguments/for_each) for details about how the argument works.
163160

164161
#### Summary
165162

0 commit comments

Comments
 (0)