Skip to content

Releases: pwillis-els/terraformsh

v0.14

12 Aug 21:30
5ed6e0f
Compare
Choose a tag to compare

[v0.14]

This is a bugfix release. Major bugs fixed:

  • terraformsh apply would always return true
  • terraformsh state rm ... would not create backup files on MacOS

Added features

  • Example of migrating state.

🐛 Bug Fixes

  • Fix a bunch of bugs @pwillis-els (#25)
    • Bug where "+ cd ..." is printed multiple times. Instead check what the last
      "cd" was set to, and if this one is the same, don't "cd" again.
    • Bug where backend config was getting appended to the init command every time
      the _final_vars function was called.
    • Need to have both 'cd' operations follow each other.
    • Make revgrep run in a subshell so 'cd' in that command doesn't negatively
      effect other commands.
    • Bug where status was returned 0 even if 'terraform apply' had errors.
      Instead return terraform's real return code.
    • Bug where 'terraformsh state rm' does not create a backup file correctly
      on MacOS.

v0.13

27 Sep 15:20
Compare
Choose a tag to compare

[v0.13]

Added Features

🐛 Bug Fixes

v0.12

01 Feb 00:01
Compare
Choose a tag to compare

[v0.12] - 2022-01-31

Added

  • Option '-n' (NO_CLEANUP_TMP=1) prevents removing the dynamic TF_DATA_DIR
  • Wrappers for most Terraform commands (workspace, console, output, taint,
    untaint, force-unlock)
  • '-backup=' option added to 'terraformsh state rm ...' commands

Changed

  • Removal of temporary TF_DATA_DIR is avoided only if NO_CLEANUP_TMP_ON_ERROR=1
    . Before it would have left the directory intact on error, leading to it
    being re-used the next time.
  • Check for files with '-e', do not check if they're readable with '-r'
  • Prevent re-running 'terraform init' multiple times in same session

Fixed

  • Location of default plan file
  • 'terraform validate' for newer versions of Terraform
  • Passing arbitrary options to commands
  • Detecting sub-commands of parent commands
  • Detecting previously-set TF_DATA_DIR
  • Run 'init' before 'import
  • Fix running 'terraform state' with no other arguments and add missing
    WORKSPACE_ARGS array

v0.11

03 Nov 02:20
0b28cbc
Compare
Choose a tag to compare

[v0.11] - 2021-11-02

Added

  • Unit tests (only 3 so far)
  • GitHub Actions integration

Fixed

  • terraformsh -P destroy now works as expected. Before it would try to run
    'terraform apply' rather than 'terraform destroy'.
    You can auto-accept with terraformsh -P -E "DESTROY_ARGS+=(-auto-accept)" destroy
    (or set it in a config file like ~/.terraformshrc).
    Thanks @AMKamel for the contribution! \o/

v0.10

22 Oct 12:27
Compare
Choose a tag to compare

[v0.10] - 2021-10-22

Added

  • Handlers for 0.12upgrade and 0.13upgrade commands
  • Allow overriding TF_BACKEND_AUTO_CONFIG_FILE and TF_AUTO_CONFIG_FILE

Changed

  • Before, '-reconfigure -force-copy' was always passed to 'terraform init'.
    Now it can now be overridden in INIT_ARGS .
  • 'terraform init' output before 'terraform state' now goes to STDERR, so
    that 'terraform state pull > foo.json' works as expected.
    NOTE: This behavior may change in the future (or really, all commands'
    output behavior may change, in order to eliminate this edge case)

Fixed

  • Tfvars files now have their paths fully resolved before changing directories
  • Make sure configs' full paths are used when 'source'ing into shell
  • Run 'terraform init' before 'terraform state'

Full Changelog: v0.9...v0.10

v0.9

29 Sep 22:42
Compare
Choose a tag to compare

First real release. I'm pretty sure there are still bugs in this thing, but it works pretty well for me.

Watch me issue a new release within a couple hours.