Both terraform-plugin-sdk and terraform-plugin-framework based resources allow the configuration of descriptions at the attribute and resource level. This can defined as either plain-text or markdown. The AWS Provider has historically not filled these attributes in, instead relying on hand written documentation for each resource.
It would be beneficial for various downstream tooling to have these populated (ie):
To enable this we would ideally need to rely on tooling to generate the bulk of the registry documentation from the schema descriptions, but allow overrides and customizations to provide examples notes and callouts. Contributors should not be responsible for maintaining documentation in two places. Examine the ease of documentation contribution via hand written fields or maintaining description fields.
Potential Implementation Ideas
Create tooling to backfill description fields from existing hand-written documentation and keep them in sync and validate whether fields were missing.
Backfill examples and notes into override templates
Test and compare generated vs handwritten versions, once satisfied registry should use generated versions and contributor documentation should be updated accordingly.
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Description
Both terraform-plugin-sdk and terraform-plugin-framework based resources allow the configuration of descriptions at the attribute and resource level. This can defined as either plain-text or markdown. The AWS Provider has historically not filled these attributes in, instead relying on hand written documentation for each resource.
It would be beneficial for various downstream tooling to have these populated (ie):
To enable this we would ideally need to rely on tooling to generate the bulk of the registry documentation from the schema descriptions, but allow overrides and customizations to provide examples notes and callouts. Contributors should not be responsible for maintaining documentation in two places. Examine the ease of documentation contribution via hand written fields or maintaining description fields.
Potential Implementation Ideas
Affected Resource(s) and/or Data Source(s)
No response
Potential Terraform Configuration
No response
References
Would you like to implement a fix?
None