v1.40.0
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@v3
- uses: dflook/terraform-plan@v1.40.0
with:
path: my-terraform-config
You can specify an action version as:
@v1.40.0
to use exactly this release@v1.40
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
-
An optional
plan_path
input for dflook/terraform-apply, and matchingplan_path
output for dflook/terraform-plan.This allows passing the generated plan from the plan step to the apply step, if you have a secure place to store it.
The default behaviour when this is not set is unchanged - the apply step will generate a fresh plan and compare it to the plan from the PR comment.
By passing the plan from the plan step to the apply step, the apply step will skip generating a plan and use the passed plan instead.
It must still match the plan in the PR comment.This can be much faster than planning the same change twice, but is not necessarily a better choice. See the dflook/terraform-apply docs for details.
-
A new
to_import
output for dflook/terraform-plan, which is the number of resources that would be imported by the plan.This joins the existing
to_add
,to_change
,to_destroy
andto_move
outputs.