Skip to content

Commit b215631

Browse files
Disable Terraform state locking in CI to resolve lock conflicts
Remove state locking from terraform plan commands in GitHub Actions workflow to prevent lock conflicts between local development and CI runs. This is a temporary measure to ensure CI can run reliably for testing scenarios. - Changed -lock-timeout=5m to -lock=false in both terraform plan commands - This allows CI to run without waiting for state locks to be released
1 parent d99eb0c commit b215631

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/automatic.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
id: plan
7979
run: |
8080
set -o pipefail -ex
81-
terraform plan -compact-warnings -no-color -input=false -lock-timeout=5m -out tfplan 2>&1 \
81+
terraform plan -compact-warnings -no-color -input=false -lock=false -out tfplan 2>&1 \
8282
| tee terraform_log
8383
terraform show -json tfplan > tfplan.json
8484
@@ -154,7 +154,7 @@ jobs:
154154
id: plan-cost
155155
run: |
156156
set -o pipefail -ex
157-
terraform plan -compact-warnings -no-color -input=false -lock-timeout=5m -out tfplan-cost 2>&1
157+
terraform plan -compact-warnings -no-color -input=false -lock=false -out tfplan-cost 2>&1
158158
terraform show -json tfplan-cost > tfplan-cost.json
159159
160160
- uses: overmindtech/cost-signals-action@v1

0 commit comments

Comments
 (0)