-
Notifications
You must be signed in to change notification settings - Fork 535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Split Name in resources section into Resource Type and ResourceName #645
Comments
…tions in favor of Spec()
…rmats to use the GetResourceType() and the GetResourceName() functions
…and name splitted format
…tions in favor of Spec() Signed-off-by: Edgar R. Sandi <edgar.r.sandi@gmail.com>
…me() functions Signed-off-by: Edgar R. Sandi <edgar.r.sandi@gmail.com>
Signed-off-by: Edgar R. Sandi <edgar.r.sandi@gmail.com>
…rmats to use the GetResourceType() and the GetResourceName() functions Signed-off-by: Edgar R. Sandi <edgar.r.sandi@gmail.com>
…and name splitted format Signed-off-by: Edgar R. Sandi <edgar.r.sandi@gmail.com>
… format Signed-off-by: Edgar R. Sandi <edgar.r.sandi@gmail.com>
…tions in favor of Spec() Signed-off-by: Edgar R. Sandi <edgar.r.sandi@gmail.com>
…me() functions Signed-off-by: Edgar R. Sandi <edgar.r.sandi@gmail.com>
Signed-off-by: Edgar R. Sandi <edgar.r.sandi@gmail.com>
…rmats to use the GetResourceType() and the GetResourceName() functions Signed-off-by: Edgar R. Sandi <edgar.r.sandi@gmail.com>
…and name splitted format Signed-off-by: Edgar R. Sandi <edgar.r.sandi@gmail.com>
… format Signed-off-by: Edgar R. Sandi <edgar.r.sandi@gmail.com>
In the meantime, this can be done via the E.g. I wanted to have a table of just the resources (the data sources the module uses are kind of private information) so I didn't want to show the "type" (it's always resource) or the name of the resource (also implementation detail). I used this:
Note that I concat provider name with type so that the constructed string matches what is actually in the tf file. |
What problem are you facing?
Id like a cleaner resource section by breaking up the current Name which is the fully qualified address of the resource into Type and Name
https://developer.hashicorp.com/terraform/cli/state/resource-addressing#resource-spec
How could terraform-docs help solve your problem?
Current render
Current code
New render
New code
We could also add a column for the index to differentiate between count and for each resources
Currently there is only a link to the upstream resource name in the registry docs but it would be nice to also add an anchor link somehow. We usually use it on the name so perhaps we can keep that consistent and create a separate link to upstream docs using
The text was updated successfully, but these errors were encountered: