How does S3-native locking work and how does it replace DynamoDB?
AdvancedConceptState Internals
Answer
Terraform 1.10 introduced use_lockfile = true (experimental; stable in 1.11), which writes a .tflock object next to the state using S3 conditional writes (If-None-Match), so no DynamoDB table is needed. The dynamodb_table argument is deprecated. When migrating, you can enable both temporarily so mixed-version teams stay locked, then remove DynamoDB.