Process Flow - State locking with DynamoDB
Terraform Init
Check DynamoDB Lock Table
Try to Acquire Lock
Release Lock
Complete
Terraform uses a DynamoDB table to lock the state file during operations. It tries to acquire a lock before applying changes, waits if locked, then releases the lock after completion.