-
Notifications
You must be signed in to change notification settings - Fork 565
Extract and render output values from Terraform #191
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
Conversation
Pass empty string to CreateModule.outputValuePath
Some things I can think off of the top of my head that I would like to hear your input on:
As for tests, I was hoping to get your feedback on the code first and then I will tackle those. I appreciate your feedback; apologies in advance for n00b go questions :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's awesome @gshel, thank you so much. I have some comments and suggestions bellow, please feel free to reach out before you start refactoring/applying changes, if you have any questions, suggestions or objections.
We definitely should not drop the empty field, I don't have an answer for it at the moment, check out #191 (comment)
There are some documentation available here. I'm currently working on an enhancement to auto-generate that from whatever exists in
That's true :) we need to address that after/with this #191 (comment) |
Co-authored-by: Khosrow Moossavi <khos2ow@gmail.com>
* Auto generate formats document from examples * fix lint issues
Read the outputValuesPath from an env variable Use an env var with a path for '--output-values' Update Changelog Use an env var with a path for '--output-values' Update Changelog properly write output values for evrythng but yaml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @gshel for the hard work, this PR's starting to get shape! I have some comments below.
I'm not sure how we can test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost finished, we're getting there! I have some small comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much @gshel for the brilliant work ❤️
Prerequisites
Put an
x
into the box(es) that apply:For more information, see the Contributing Guide.
Description
This PR allows users to pass the global flag '--output-values PATH' to inject a project's outputs' values into the chosen format.
cd intoYourTF/project
terraform outputs --json > output_values.json
terraform-docs markdown table --output-values output_values.json
Issues Resolved
#165
Checklist
Put an
x
into all boxes that apply:Tests
make test
.Documentation
Code Style