hashicorp / hashicorp/terraform-exec

Add convenience method to Plan and return JSON as single func

Open
#40 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
786
Forks
129
PR merge metrics
No merged PRs in 30d

Description

One option is supporting the exit code:
https://www.terraform.io/docs/commands/plan.html#detailed-exitcode

The `Plan` signature could be changed to: `Plan(...) (changesPresent bool, err error)` or something similar to surface the exit code data.

Another option is just returning the actual JSON plan always from the `Plan` method. In programmatic usage you probably will want it frequently anyway.

We could optionally do both of these in the return values.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.