Skip to content

Releases: hashicorp/terraform-exec

v0.13.0

05 Feb 18:42
Compare
Choose a tag to compare
v0.13.0

v0.12.0

18 Dec 15:36
Compare
Choose a tag to compare

BREAKING CHANGES:

  • Move Git ref installation to subpackage so that consumers can limit dependencies (#98)

FEATURES:

  • Improve error handling for formatting command on unsupported version (<0.7.7) (#88)
  • Introduce Format method with io.Reader/io.Writer interfaces (#96)
  • Introduce Validate method with tfjson defined diagnostic types. Those types reflect exactly the types used in terraform validate -json output (#68)
  • Introduce StateMv method (#112)
  • Introduce Upgrade012 method (#105)

BUG FIXES:

  • Fix issue in tfinstall.GitRef where it assumed a vendor directory was present (#89)
  • Use json.Number instead of float64 when parsing state (#113)
  • Support long variable names in ErrMissingVar (#110)

v0.11.0

23 Sep 09:07
Compare
Choose a tag to compare

FEATURES

  • Added Terraform fmt support with the ability to format and write files/folders, check if files/folders need formatting, and format strings directly (#82)
  • Added support for refs in the tfinstall CLI (#80)

N.B. tfinstall binaries for all supported platforms are now available via GitHub Releases.

v0.10.0

23 Sep 08:53
Compare
Choose a tag to compare

FEATURES

  • Added the ability to customize the User-Agent header for some tfinstall finders (#76)
  • Added well known error for a mismatch for required_version (#66)
  • Added new ShowPlanFileRaw function to obtain the human-friendly output of a plan (#83)

v0.9.0

09 Sep 19:12
Compare
Choose a tag to compare

BREAKING

  • context.Context added to tfinstall.Find to allow for cancellation, timeouts, etc (#51)
  • You can no longer use TF_WORKSPACE for workspace management, you must use Terraform.WorkspaceSelect (#75)

FEATURES

  • Add ErrWorkspaceExists for when workspaces with the same name already exist when calling Terraform.WorkspaceNew (#67)
  • Added tfinstall.GitRef to support installation of Terraform from a git ref instead of by released version (#51)
  • Created the tfinstall CLI utility (this is mostly for use in things like CI automation) (#29)
  • Added ReattachOption for plugin reattach functionality (#78)

v0.8.0

29 Aug 18:38
Compare
Choose a tag to compare

BREAKING

  • Add -detailed-exit-code to Terraform.Plan calls, Terraform.Plan now also returns a bool indicating if any diff is present (#55)

FEATURES

  • Added Terraform.SetAppendUserAgent for User-Agent management from consuming applications (#46)
  • Added Terraform.WorkspaceList, Terraform.WorkspaceNew, and Terraform.WorkspaceSelect along with the ErrNoWorkspace error to indicate a workspace does not exist (#56)
  • Added support for using multiple VarFile options (#61)

BUG FIXES

  • Fix bug with checking for empty path before executing version command (#62)

v0.7.0

20 Aug 14:58
Compare
Choose a tag to compare

FEATURES

  • Added Terraform.Refresh method (#53)
  • Added Terraform.ShowStateFile and Terraform.ShowPlanFile (#54)
  • Added support for DIR positional arg in init, destroy, and plan (#52)
  • Relaxed logger interface (#57)
  • Added error for missing required variable (#57)

BUG FIXES

  • Fixed logging issue for error cmd (#57)

v0.6.0

14 Aug 18:39
Compare
Choose a tag to compare

0.6.0 (August 14, 2020)

FEATURES

  • Added Terraform.SetStdout and Terraform.SetStderr to let consumers log CLI output (#49)

BUG FIXES

  • Fixed miscategorization of ErrNoInit on Terraform 0.13 (#48)

v0.5.0

14 Aug 12:53
Compare
Choose a tag to compare

FEATURES:

  • Version compatibility testing for terraform show (#41)

BUG FIXES:

  • Tolerate reversed terraform version output order (#47)

v0.4.0

30 Jul 18:27
Compare
Choose a tag to compare

FEATURES:

  • Added Terraform.SetLogPath method to set TF_LOG_PATH environment variable, and prevented manual setting of programmatically supported environment variables (#32)
  • Added Terraform.Version method to get executable version information (#7)

BUG FIXES:

  • Fixed -var handling issue (#34)