Configuring the AWS Lambda function