This project demonstrates how to connect AWS database and SQS. It usages AWS Java SDK to achieve this.
- AWS Account with sufficient balance to deploy
- Pre-configured AWS database service
- Pre-configured SQS FIFO queue(s)
- Role with permission to read / write SQS ( select role and SQS read-write permission)
- Add valid DB connection string, username & password in LambdaFunctionHandler
- Build maven project
- Login to AWS console
- From services select Lambda
- Click on create Function
- Select Author from scratch
- Give name as myLambdaFunction
- Select runtime as Java 8
- Select valid role
- Select create Button
- In Function Code Section a. upload Jar file generated in Step #2 b. In Handler text field: enter org.xor.lambda. LambdaFunctionHandler:: handleRequest
- Save Function