In this section, we will update the existing functions to read and write from/to the DynamoDB table. The following diagram describes the target architecture:
API Gateway will forward incoming requests to the target Lambda function, which will call the corresponding DynamoDB operation on the movies table.