We will first set up an S3 bucket that will hold the source code for the Lambda deployment package. IAM policies and roles allow API Gateway to invoke Lambda, and Lambda to access DynamoDB. We set them up using the AWS Management Console; here, we will use the AWS CLI and SAM.
The code, shell scripts, and configuration files used in this chapter are available under the ./serverless-microservice-data-api/ folder.