COMPONENT: Support for S3-based State Locking
Description
The Terraform HCL docs claim that DynamoDB-based locking is now deprecated, and instead encourage using S3-based state locking: https://developer.hashicorp.com/terraform/language/backend/s3#state-locking.
But, enabling S3 state locking doesn't seem to be supported in the CDK. Are there plans to support this?
References
- https://developer.hashicorp.com/terraform/language/backend/s3#state-locking
Help Wanted
- [x] I'm interested in contributing a fix myself
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
There is already an issue for this that I believe was closed by mistake: https://github.com/hashicorp/terraform-cdk/issues/3834
In the meantime you can use this workaround: https://github.com/hashicorp/terraform-cdk/issues/3834#issuecomment-2715730340
#3834 was indeed closed too early, and has now been locked, so this is the only issue left tracking this.