https://github.com/xoriantopensource/aws_function_sqs
Lambda function to read SQS
https://github.com/xoriantopensource/aws_function_sqs
Last synced: 8 months ago
JSON representation
Lambda function to read SQS
- Host: GitHub
- URL: https://github.com/xoriantopensource/aws_function_sqs
- Owner: XoriantOpenSource
- License: apache-2.0
- Created: 2018-03-05T10:51:52.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-05T11:09:28.000Z (about 8 years ago)
- Last Synced: 2025-01-05T16:22:59.992Z (over 1 year ago)
- Language: Java
- Size: 12.7 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AWS_FUNCTION_SQS
This project demonstrates how to connect AWS database and SQS. It usages AWS Java SDK to achieve this.
# Prerequisites
1. AWS Account with sufficient balance to deploy
2. Pre-configured AWS database service
3. Pre-configured SQS FIFO queue(s)
4. Role with permission to read / write SQS ( select role and SQS read-write permission)
# Steps:
1. Add valid DB connection string, username & password in LambdaFunctionHandler
2. Build maven project
3. Login to AWS console
4. From services select Lambda
5. Click on create Function
6. Select Author from scratch
7. Give name as myLambdaFunction
8. Select runtime as Java 8
9. Select valid role
10. Select create Button
11. In Function Code Section
a. upload Jar file generated in Step #2
b. In Handler text field: enter org.xor.lambda. LambdaFunctionHandler:: handleRequest
12. Save Function