tfe-run icon indicating copy to clipboard operation
tfe-run copied to clipboard

Don't fail the workflow if no statefile is available

Open yvrhdn opened this issue 4 years ago • 0 comments

Follow up from #22: in a new Terraform workspace when no statefile has been added yet, every speculative run will fail when attempting to fetch the outputs.

We should either:

  • fetch the outputs from the statefile that is created by the plan (if this is possible with the API?)
  • not fail when the statefile does not exist (i.e. log a warning and do not return any outputs)

yvrhdn avatar Aug 09 '21 12:08 yvrhdn