You can also go through the Your first AWS Lambda recipe in Chapter 1, Getting Started with Serverless Computing on AWS, and use CloudFormation for Lambda provisioning. Go through the following steps to deploy and invoke the Lambda function:
- Run mvn clean package from inside the Lambda project root folder to create the Uber JAR.
- Upload the Uber JAR to S3.
- Create a role for the Lambda with an appropriate trust relationship definition.
- Create a policy for basic logging permissions and attach it to the role.
- Create a policy for the required Kinesis permissions and attach it to the role by going through the following steps:
- Create the policy document with the required Kinesis permissions using ...