Skip to content

Commit

Permalink
feat: adding the ability to define the terraform state lock timeout, …
Browse files Browse the repository at this point in the history
…and defaulting to 30s (#29)
  • Loading branch information
gambol99 authored Jul 10, 2024
1 parent 53874c9 commit 3d6ac00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/terraform-plan-and-apply-aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ jobs:
id: plan
run: |
set -o pipefail
terraform -chdir=${{ inputs.terraform-dir }} plan -var-file=$TF_VAR_FILE -no-color -input=false -out=tfplan -lock-timeout={{ inputs.terraform-lock-timeout }} 2>&1 | tee tfplan.stdout
terraform -chdir=${{ inputs.terraform-dir }} plan -var-file=$TF_VAR_FILE -no-color -input=false -out=tfplan -lock-timeout=${{ inputs.terraform-lock-timeout }} 2>&1 | tee tfplan.stdout
- name: Terraform Plan JSON Output
run: |
terraform -chdir=${{ inputs.terraform-dir }} show -json tfplan > tfplan.json
Expand Down Expand Up @@ -543,4 +543,4 @@ jobs:
name: additional-dir-${{ inputs.environment }}
path: ${{ inputs.additional-dir }}
- name: Terraform Apply
run: terraform apply -auto-approve -input=false -lock-timeout={{ inputs.terraform-lock-timeout }} tfplan
run: terraform apply -auto-approve -input=false -lock-timeout=${{ inputs.terraform-lock-timeout }} tfplan

0 comments on commit 3d6ac00

Please sign in to comment.