How do you handle state locking when running terraform plan on a pull request? Our WEM configs are growing, and we need CI/CD to validate changes before merge. We tried using a shared S3 backend, but the plan fails with a state lock error if two devs push at once.
- AWS CodePipeline
- Genesys Cloud Terraform provider v1.45
- Shared S3 state bucket
The apply works fine on merge, but the parallel plans break. Anyone have a working GitHub Actions or CodeBuild script that handles this?