Description
Expected Behavior
Add support for using the new S3 locking state capability. This is documented here:
https://developer.hashicorp.com/terraform/language/backend/s3
Actual Behavior
Receiving the following warning when deploying using S3 and an associated DynamoDB locking state table:
│ Warning: Deprecated Parameter
│
│ with data.terraform_remote_state.cross-stack-reference-input-infra-services,
│ on cdk.tf.json line 44, in data.terraform_remote_state.cross-stack-reference-input-infra-services:
│ 44: }
│
│ The parameter "dynamodb_table" is deprecated. Use parameter "use_lockfile"
│ instead.
│
│ (and 2 more similar warnings elsewhere)
╵
There doesn't appear to be support for setting this new property in CDKTF.
Steps to Reproduce
- Configure a stack to use an S3 backend with a DynamoDB table for locking state
Versions
language: typescript
cdktf-cli: 0.20.11
node: v20.10.0
cdktf: 0.20.11
constructs: 10.4.2
jsii: null
terraform: 1.10.5
arch: arm64
os: darwin 24.3.0
Providers
┌───────────────┬──────────────────┬─────────┬────────────┬────────────────────────────┬─────────────────┐
│ Provider Name │ Provider Version │ CDKTF │ Constraint │ Package Name │ Package Version │
├───────────────┼──────────────────┼─────────┼────────────┼────────────────────────────┼─────────────────┤
│ aws │ 5.90.0 │ ^0.20.0 │ │ @cdktf/provider-aws │ 19.56.0 │
├───────────────┼──────────────────┼─────────┼────────────┼────────────────────────────┼─────────────────┤
│ helm │ 2.17.0 │ ^0.20.0 │ │ @cdktf/provider-helm │ 10.5.0 │
├───────────────┼──────────────────┼─────────┼────────────┼────────────────────────────┼─────────────────┤
│ kubernetes │ 2.36.0 │ ^0.20.0 │ │ @cdktf/provider-kubernetes │ 11.11.0 │
└───────────────┴──────────────────┴─────────┴────────────┴────────────────────────────┴─────────────────┘
Gist
No response
Possible Solutions
No response
Workarounds
No response
Anything Else?
No response
References
No response
Help Wanted
- 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