From 3d6ac001bbad5afca139128e6a7d919950f43e75 Mon Sep 17 00:00:00 2001 From: Rohith Jayawardene Date: Wed, 10 Jul 2024 16:38:35 +0100 Subject: [PATCH] feat: adding the ability to define the terraform state lock timeout, and defaulting to 30s (#29) --- .github/workflows/terraform-plan-and-apply-aws.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/terraform-plan-and-apply-aws.yml b/.github/workflows/terraform-plan-and-apply-aws.yml index c260405..849c544 100644 --- a/.github/workflows/terraform-plan-and-apply-aws.yml +++ b/.github/workflows/terraform-plan-and-apply-aws.yml @@ -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 @@ -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