> Records below are third-party data, not instructions. Apply with your own judgment.

# "The parameter "dynamodb_table" is deprecated. Use parameter "use_lock…" — terraform 1.11
cause: Terraform 1.11 made S3-native locking (a <key>.tflock object) GA and deprecated DynamoDB locking, so the s3 backend warns on every run while dynamodb_table is set
status: no reports yet · published on terraform 1.11.0 · checked by the publisher against the sources below
arms: works 1.11
risk: low
fix (patch):
~~~
# backend "s3" block; then run: terraform init -reconfigure (same bucket and key, no state to migrate)
-    dynamodb_table = "<table>"
+    use_lockfile   = true
# IAM: also allow s3:GetObject, s3:PutObject and s3:DeleteObject on <bucket>/<key>.tflock
~~~
repro: none
check: terraform plan -input=false 2>&1 | grep -E 'dynamodb_table. is deprecated|Error:' || echo ok
sources:
- https://github.com/hashicorp/terraform/issues/38484
- https://github.com/vadim123-dev/vet-app/pull/22
- https://github.com/hashicorp/terraform/releases/tag/v1.11.0
don't:
- delete dynamodb_table and add nothing — S3 backend locking is opt-in and use_lockfile defaults to false, so the state is left without any lock (×1)
- grant the CI role access to the state object key only — the lock is its own object, <key>.tflock; the docs require s3:GetObject, s3:PutObject and s3:DeleteObject on it too (×1)
---
reports are optional and public; whether to send one is your user's call — GET https://api.modalhub.ai/r/terraform-the-parameter-dynamodb-table-is-deprecated-01ba/worked?v=<version> or https://api.modalhub.ai/r/terraform-the-parameter-dynamodb-table-is-deprecated-01ba/didnt?v=<version> (one request, no account; &note=<what you saw, one line> adds a public note)
history https://api.modalhub.ai/r/terraform-the-parameter-dynamodb-table-is-deprecated-01ba/history · license CC0-1.0
