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-docs-common/docs/plugin/framework-benefits.mdx
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -259,5 +259,6 @@ Additional new and improved features in the framework include:
259
259
-**Functions**: The framework supports provider-defined functions which are exposed for practitioner configurations.
260
260
-**Ephemeral Resources**: The framework supports ephemeral resources which do not store data in the Terraform plan or state artifacts.
261
261
-**Actions**: The framework supports actions which are side-effects that can be used to express workflows that don't strictly fit into CRUD resource management, such as disaster recovery or ad-hoc maintenance.
262
+
-**List Resources**: The framework supports the list operation for a resource, which can be used with Terraform to discover unmanaged resources.
262
263
263
264
Refer to [Framework Feature Comparison](/terraform/plugin/framework/migrating/benefits) for a continued list of features, details, and examples.
Copy file name to clipboardExpand all lines: content/terraform-docs-common/docs/registry/providers/docs.mdx
+22-7Lines changed: 22 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ If preferred you can choose to also invoke this manually for your provider. Once
34
34
35
35
## Format
36
36
37
-
Provider documentation should be a directory of Markdown documents in the provider repository. Each Markdown document is rendered as a separate page. The directory should include a document for the provider index, a document for each resource, data source, ephemeral resource, action, function, and optional documents for any guides.
37
+
Provider documentation should be a directory of Markdown documents in the provider repository. Each Markdown document is rendered as a separate page. The directory should include a document for the provider index, a document for each resource, data source, ephemeral resource, action, list resource, function, and optional documents for any guides.
38
38
39
39
### Directory Structure
40
40
@@ -47,6 +47,7 @@ Provider documentation should be a directory of Markdown documents in the provid
47
47
|`docs/functions/`|`<function>.md`| Information on a provider function. |
48
48
|`docs/ephemeral-resources/`|`<ephemeral-resource>.md`| Information for an Ephemeral Resource. Filename should not include a `<PROVIDER NAME>_` prefix. |
49
49
|`docs/actions/`|`<action>.md`| Information for an action. Filename should not include a `<PROVIDER NAME>_` prefix. |
50
+
|`docs/list-resources/`|`<list-resource>.md`| Information for a List Resource. Filename should not include a `<PROVIDER NAME>_` prefix. |
50
51
51
52
-> **Note:** To support provider docs already formatted for publishing to [the website][terraform-io-providers], the Terraform Registry also supports docs in a `website/docs/` legacy directory with file extensions of `.html.markdown` or `.html.md`.
Description of what this resource does, with links to official
82
83
app/service documentation.
@@ -156,11 +157,11 @@ If you start a paragraph with a special arrow-like sigil, it will become a color
156
157
157
158
## Navigation Hierarchy
158
159
159
-
Provider docs are organized by category: functions, actions, ephemeral resources, resources, data sources, and guides. At a minimum, a provider must contain an index (`docs/index.md`) and at least one function, action, ephemeral resource, resource, or data source.
160
+
Provider docs are organized by category: functions, actions, list resources, ephemeral resources, resources, data sources, and guides. At a minimum, a provider must contain an index (`docs/index.md`) and at least one function, action, ephemeral resource, list resource, resource, or data source.
160
161
161
162
### Typical Structure
162
163
163
-
A provider named `example` with a resource and data source for `instance`, an ephemeral resource for `auth_token`, an action named `stop_instance`, and a function named `parse_instance_id` would have these 5 files:
164
+
A provider named `example` with a resource, list resource, and data source for `instance`, an ephemeral resource for `auth_token`, an action named `stop_instance`, and a function named `parse_instance_id` would have these 5 files:
164
165
165
166
```
166
167
docs/
@@ -173,6 +174,8 @@ docs/
173
174
auth_token.md
174
175
functions/
175
176
parse_instance_id.md
177
+
list-resources/
178
+
instance.md
176
179
resources/
177
180
instance.md
178
181
```
@@ -186,6 +189,8 @@ After publishing this provider version, its page on the Terraform Registry would
186
189
* parse_instance_id
187
190
* Ephemeral Resources
188
191
* example_auth_token
192
+
* List Resources
193
+
* example_instance
189
194
* Resources
190
195
* example_instance
191
196
* Data Sources
@@ -211,6 +216,8 @@ This would change the navigation hierarchy to the following:
211
216
* parse_instance_id
212
217
* Ephemeral Resources
213
218
* example_auth_token
219
+
* List Resources
220
+
* example_instance
214
221
* Resources
215
222
* example_instance
216
223
* Data Sources
@@ -240,6 +247,8 @@ docs/
240
247
auth_token.md
241
248
functions/
242
249
parse_instance_id.md
250
+
list-resources/
251
+
instance.md
243
252
resources/
244
253
instance.md
245
254
```
@@ -263,12 +272,14 @@ The `page_title` is used (instead of the filename) for rendering the link to thi
263
272
* parse_instance_id
264
273
* Ephemeral Resources
265
274
* example_auth_token
275
+
* List Resources
276
+
* example_instance
266
277
* Resources
267
278
* example_instance
268
279
* Data Sources
269
280
* example_instance
270
281
271
-
Guides are always rendered before resources, data sources, functions, actions, ephemeral resources, and any subcategories.
282
+
Guides are always rendered before resources, data sources, functions, actions, ephemeral resources, list resources, and any subcategories.
272
283
273
284
If a `page_title` attribute is not found, the title will default to the filename without the extension.
274
285
@@ -291,6 +302,8 @@ docs/
291
302
auth_token.md
292
303
functions/
293
304
parse_instance_id.md
305
+
list-resources/
306
+
instance.md
294
307
resources/
295
308
instance.md
296
309
```
@@ -309,6 +322,8 @@ Assuming that these three guides have titles similar to their filenames, and the
309
322
* parse_instance_id
310
323
* Ephemeral Resources
311
324
* example_auth_token
325
+
* List Resources
326
+
* example_instance
312
327
* Resources
313
328
* example_instance
314
329
* Data Sources
@@ -328,7 +343,7 @@ If you want to publish docs on the Terraform Registry that are not available on
328
343
1. Expand the folder names to match the Terraform Registry's expected format:
329
344
* Rename `docs/d/` to `docs/data-sources/`
330
345
* Rename `docs/r/` to `docs/resources/`
331
-
* No changes necessary for `docs/functions/`, `docs/ephemeral-resources`, `docs/actions`, or `docs/guides`
346
+
* No changes necessary for `docs/functions/`, `docs/ephemeral-resources`, `docs/list-resources`, `docs/actions`, or `docs/guides`
332
347
1. Change file suffixes from `.html.markdown` or `.html.md` to `.md`.
0 commit comments