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 output in api response #4776

Open
1 task done
raulsh opened this issue Jul 23, 2024 · 0 comments · May be fixed by #4777
Open
1 task done

add json output in api response #4776

raulsh opened this issue Jul 23, 2024 · 0 comments · May be fixed by #4777
Labels
feature New functionality/enhancement

Comments

@raulsh
Copy link

raulsh commented Jul 23, 2024

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request. Searching for pre-existing feature requests helps us consolidate datapoints for identical requirements into a single place, thank you!
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Describe the user story
I want to build a drift detection tool using plan output. But in the API endpoint I can get only Terraform plain output.

Describe the solution you'd like
Add JSON plan output into API response and not just plain output.

Describe the drawbacks of your solution

  • Maybe will depend on "SHOWFILE" and in somecases how it handled by each implementation
  • Depending on how will be implemented (raw JSON or struct): manifest changes over TF versions.

Describe alternatives you've considered

  • Changing output when a plan is executed with no PR number (and then getting JSON output from TerraformOutput)
  • Using an intermediary to emit JSON (i.e. Redis to put/get output).
  • Just avoid Atlantis and run terragrunt/terraform plan (of course I don't want this)

Tasks

Preview Give feedback
No tasks being tracked yet.
@raulsh raulsh added the feature New functionality/enhancement label Jul 23, 2024
@raulsh raulsh linked a pull request Jul 23, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality/enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant