runatlantis/atlantis

add json output in api response

Opened this issue ยท 0 comments

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.