Build a Lambda Function -- 2

Job ID: 32343023

Budget: $10 – $30 USD

So i have a dynamo db table say users table, whenever i perform a edit transaction to my table i need to log that into another table (logging table) , like the old data vs new data, who performed the action and time of the transaction. The best way would be dynamodb -> cloudtrail event -> a lambda function which will trigger when there's a PUT operation -> logging table in dynamo db again.
Related categories: Python Aws Lambda Terraform