Skip to content

v1.22.0

Choose a tag to compare

@dflook dflook released this 23 Jan 13:47
Immutable release. Only release title and notes can be modified.
5630572

All the terraform actions in this repository are released as one.
Use the actions as part of a GitHub Actions workflow, e.g:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2

    - uses: dflook/terraform-plan@v1.22.0
      with:
        path: my-terraform-config

You can specify an action version as:

  • @v1.22.0 to use exactly this release
  • @v1.22 to use the latest patch release for this specific minor version
  • @v1 to use the latest patch release for this specific major version

Changes

Added

  • Workspace management for Terraform Cloud/Enterprise has been reimplemented to avoid issues with the terraform workspace command when using the remote backend or a cloud config block:

  • The terraform version to use will now be detected from additional places:

    • The terraform version set in the remote workspace when using Terraform Cloud/Enterprise as the backend
    • An asdf .tool-versions file
    • The terraform version that wrote an existing state file
    • A TERRAFORM_VERSION environment variable

    The best way to specify the version is using a required_version constraint.

    See dflook/terraform-version docs for details.

Changed

As a result of the above terraform version detection additions, note these changes:

  • Actions always use the terraform version set in the remote workspace when using TFC/E, if it exists. This mostly effects dflook/terraform-fmt, dflook/terraform-fmt-check and dflook/terraform-validate.

  • If the terraform version is not specified anywhere then new workspaces will be created with the latest terraform version. Existing workspaces will use the terraform version that was last used for that workspace.

  • If you want to always use the latest terraform version, instead of not specifying a version you now need to set an open-ended version constraint (e.g. >1.0.0)

  • All actions now support the inputs and environment variables related to the backend, for discovering the terraform version from a TFC/E workspace or remote state. This add the inputs workspace, backend_config, backend_config_file, and the TERRAFORM_CLOUD_TOKENS environment variable to the dflook/terraform-fmt, dflook/terraform-fmt-check and dflook/terraform-validate actions.

  • ⚠️ Some unused packages were removed from the container image, most notably Python 2.