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
Use terraform-json to have better terraform plan testing #754
Conversation
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.
Nice improvement 👍
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.
LGTM!
Going to hold off merging this until we resolve the build issues with #756 |
57eb06d
to
c0c1857
Compare
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.
LGTM!
Thanks for review. I ran the build a few times, and different tests fail each time, and they are all unrelated to this PR, so going to go ahead and merge this in. |
Now that our opensource policy allows MPL, here is a PR that updates our examples to use
terraform-json
. Note that this also implements a struct that wraps terraform-json to provide a more ergonomic interface to navigate the plan struct by providing a map that maps the resource addresses to the corresponding struct values.