0.9.0 (Unreleased)

FEATURES

  • Add ErrWorkspaceExists for when workspaces with the same name already exist when calling Terraform.WorkspaceNew [GH-67]

0.8.0 (August 29, 2020)

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)

0.7.0 (August 20, 2020)

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)

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)

0.5.0 (August 14, 2020)

FEATURES:

  • Version compatibility testing for terraform show (#41)

BUG FIXES:

  • Tolerate reversed terraform version output order (#47)

0.4.0 (July 30, 2020)

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)

0.3.0 (July 17, 2020)

BREAKING CHANGES:

  • Stop exporting exec.Cmd versions of methods (#25)
  • Require address and id arguments in Import() (#24)
  • Rename StateShow() to Show() (#30)

BUG FIXES:

  • Fix bug in Import() config argument (#28)

0.2.2 (July 13, 2020)

BUG FIXES:

  • Version number is now correctly reported by the tfinstall package. Please note that tfinstall.Version was incorrect between versions 0.1.1 and 0.2.1 inclusive.

0.2.1 (July 10, 2020)

BUG FIXES:

  • Minor code changes to allow for compilation in Go 1.12 (#21)

0.2.0 (July 8, 2020)

NEW FEATURES:

  • add Import() function (#20)

0.1.1 (July 7, 2020)

BUG FIXES:

  • Downgrade github.com/hashicorp/go-getter dependency, which added a requirement for Go 1.13.

0.1.0 (July 3, 2020)

Initial release.

This Go module contains two packages, github.com/hashicorp/terraform-exec/tfexec, and github.com/hashicorp/terraform-exec/tfinstall, which share the same version.