You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
The text was updated successfully, but these errors were encountered:
@stekern : We tried to use suggested solution but we get the following error:
│ Error: Extraneous JSON object property
│
│ on cdk.tf.json line 1143, in terraform.backend.s3:
│ 1143: "use_lockfile": true
│
│ No argument or block type is named "use_lockfile".
╵
This our example code:
new S3Backend(this, {
key: `k8s-cluster`,
bucket,
region,
}).addOverride("use_lockfile", true);
@saurabh2590 Hmm. That seems to be an error from Terraform, not CDK for Terraform. Are you sure you are using a version of the Terraform binary >= v1.11.0 (where the use_lockfile argument was introduced)?
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:
There doesn't appear to be support for setting this new property in CDKTF.
Steps to Reproduce
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
Community Note
The text was updated successfully, but these errors were encountered: