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

add -json args for terraform code test #1425

Open
Ericwww opened this issue Jul 24, 2024 · 0 comments
Open

add -json args for terraform code test #1425

Ericwww opened this issue Jul 24, 2024 · 0 comments
Labels
enhancement New feature or request terratest

Comments

@Ericwww
Copy link

Ericwww commented Jul 24, 2024

Background
some Terraform or OpenTofu command support -json flag so that they can output information in json format which can be understood or parsed by some program.

Describe the solution you'd like
add a field (e.g. named JSON) to Options and add -json args for those which support json output command

Describe alternatives you've considered
I also noticed that you have exported RunTerraformCommandE function so that we could wrap our own function to support -json flag for now.

Additional context
tofu init support -json flag but terraform init not. So, if you planned to accept this feature request, you might need to consider of different implementation.

@Ericwww Ericwww added the enhancement New feature or request label Jul 24, 2024
@ZachGoldberg ZachGoldberg added the terratest label Jul 30, 2024 — with Linear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request terratest
Projects
None yet
Development

No branches or pull requests

2 participants