Skip to content

Conversation

@allamand
Copy link

@allamand allamand commented Dec 3, 2025

  • Add proactive lock detection and clearing after terraform init
  • Add reactive lock recovery on apply/destroy failures
  • Apply to both common and cluster terraform stacks
  • Prevents failures from stale locks left by incomplete operations

Issue #, if available:

Description of changes:

When cloudformation tried to recreate the stack, sometimes, it is not working due to terraform lock.
the goal of this change is to allow the script to force unloack before trying again

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

- Add proactive lock detection and clearing after terraform init
- Add reactive lock recovery on apply/destroy failures
- Apply to both common and cluster terraform stacks
- Prevents failures from stale locks left by incomplete operations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant