Skip to content
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

Consider adding option to include resource private state in JSON output #35941

Open
gdavison opened this issue Nov 1, 2024 · 1 comment
Open
Labels
enhancement new new issue not yet triaged

Comments

@gdavison
Copy link
Contributor

gdavison commented Nov 1, 2024

Terraform Version

Terraform v1.9.8
on darwin_arm64

Use Cases

This is requested primarily to support provider plugin testing: hashicorp/terraform-plugin-testing#321. There isn't currently a way to validate what private state values are set, and terraform-plugin-testing relies on the JSON output

Attempted Solutions

None

Proposal

Add an option to include private values in Terraform JSON output. Since it's not something that generally should be used, use a command line flag to enable it.

References

No response

@crw
Copy link
Collaborator

crw commented Nov 14, 2024

Thanks for this feature request! If you are viewing this issue and would like to indicate your interest, please use the 👍 reaction on the issue description to upvote this issue. We also welcome additional use case descriptions. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement new new issue not yet triaged
Projects
None yet
Development

No branches or pull requests

2 participants