You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/terraform/v1.13.x/docs/language/block/stack/tfcomponent/component.mdx
+4-8Lines changed: 4 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -128,6 +128,8 @@ component "storage" {
128
128
129
129
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).
130
130
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
+
131
133
#### Summary
132
134
133
135
- Data type: Map
@@ -178,10 +180,7 @@ component "app_server" {
178
180
179
181
You do not need to include the dependant component’s outputs in the `depends_on` list because Terraform automatically recognizes those dependencies.
180
182
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.
185
184
186
185
### `for_each`
187
186
@@ -217,10 +216,7 @@ component "<LABEL>" {
217
216
218
217
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.
219
218
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.
When you use `for_each`, you can reference individual provider instances using `provider.<PROVIDER_NAME>.<ALIAS>[<KEY>]` syntax in your `component` blocks.
113
113
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.
Copy file name to clipboardExpand all lines: content/terraform/v1.13.x/docs/language/block/stack/tfcomponent/removed.mdx
+4-6Lines changed: 4 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -104,7 +104,7 @@ removed {
104
104
105
105
### `providers`
106
106
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.
108
108
109
109
```hcl
110
110
removed {
@@ -119,11 +119,7 @@ removed {
119
119
120
120
The provider mapping must include every provider that the component's module requires for resource destruction.
121
121
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.
127
123
128
124
### `for_each`
129
125
@@ -161,6 +157,8 @@ removed {
161
157
162
158
The `for_each` meta-argument is useful when you want to remove components from specific regions or environments.
163
159
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.
Copy file name to clipboardExpand all lines: content/terraform/v1.14.x (beta)/docs/language/block/stack/tfcomponent/component.mdx
+3-13Lines changed: 3 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -128,11 +128,7 @@ component "storage" {
128
128
129
129
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).
130
130
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.
136
132
137
133
138
134
### `inputs`
@@ -175,13 +171,9 @@ component "app_server" {
175
171
# ...
176
172
}
177
173
```
178
-
179
174
You do not need to include the dependant component’s outputs in the `depends_on` list because Terraform automatically recognizes those dependencies.
180
175
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.
185
177
186
178
### `for_each`
187
179
@@ -217,10 +209,8 @@ component "<LABEL>" {
217
209
218
210
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.
219
211
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.
Copy file name to clipboardExpand all lines: content/terraform/v1.14.x (beta)/docs/language/block/stack/tfcomponent/provider.mdx
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -111,6 +111,8 @@ provider "<NAME>" "<ALIAS>" {
111
111
112
112
When you use `for_each`, you can reference individual provider instances using `provider.<PROVIDER_NAME>.<ALIAS>[<KEY>]` syntax in your `component` blocks.
113
113
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.
Copy file name to clipboardExpand all lines: content/terraform/v1.14.x (beta)/docs/language/block/stack/tfcomponent/removed.mdx
+4-7Lines changed: 4 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -104,7 +104,7 @@ removed {
104
104
105
105
### `providers`
106
106
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.
108
108
109
109
```hcl
110
110
removed {
@@ -119,11 +119,7 @@ removed {
119
119
120
120
The provider mapping must include every provider that the component's module requires for resource destruction.
121
121
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.
127
123
128
124
### `for_each`
129
125
@@ -158,8 +154,9 @@ removed {
158
154
159
155
</Tabs>
160
156
157
+
You can use `for_each` to remove components from specific regions or environments.
161
158
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.
0 commit comments