docs: add S3 native locking documentation and fix variable descriptions @Sagargupta16 (#197)
## what- Fix incorrect
s3_state_lock_enabledvariable description (was "Whether to create the S3 bucket", now correctly describes S3 native state locking) - Add deprecation note to
dynamodb_enabledvariable description linking to official Terraform docs - Add "S3 Native State Locking" section to README with usage example
why
- Terraform 1.10+ introduced S3 native state locking via
use_lockfile = true, deprecating DynamoDB-based locking - The module already supports S3 native locking (
s3_state_lock_enabledvariable exists) but the documentation doesn't mention it and the variable description is incorrect - Users are confused about how to use the module without DynamoDB (#188, #194)
- DynamoDB-based locking is officially deprecated
references
- closes #188
- closes #194
- Terraform S3 backend docs: https://developer.hashicorp.com/terraform/language/backend/s3#s3-state-locking
- DynamoDB deprecation notice: https://developer.hashicorp.com/terraform/language/backend/s3#enabling-dynamodb-state-locking-deprecated