terraform-cdk icon indicating copy to clipboard operation
terraform-cdk copied to clipboard

COMPONENT: Support for S3-based State Locking

Open swain opened this issue 10 months ago • 2 comments

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

swain avatar May 29 '25 16:05 swain

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

stekern avatar Jun 12 '25 10:06 stekern

#3834 was indeed closed too early, and has now been locked, so this is the only issue left tracking this.

lossanarch avatar Jun 19 '25 07:06 lossanarch