Skip to content
Discussion options

You must be logged in to vote

@alfespa17 Thanks a lot for the quick response!

Initially I was actually looking to get all workspace outputs, not just the output from a specific job.
I found that the /history API provides access to the Terraform state files.
So, what i did was:

  1. Call the history endpoint to get all states
  2. Sort them by creation date
  3. Use the most recent one to extract the outputs

It is a bit of a workaround, but it solve my use case at the moment.

I wanted to share this in case it helps others

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Anakz
Comment options

Answer selected by Anakz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants