https://github.com/danieljhkim/multi-purpose-serverless-lambda
Multi-Purpose Serverless AWS Lambda
https://github.com/danieljhkim/multi-purpose-serverless-lambda
aws aws-lambda cloud-computing dynamodb nodejs s3 serverless
Last synced: 12 months ago
JSON representation
Multi-Purpose Serverless AWS Lambda
- Host: GitHub
- URL: https://github.com/danieljhkim/multi-purpose-serverless-lambda
- Owner: danieljhkim
- Created: 2022-05-17T21:01:50.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-11T23:28:18.000Z (over 3 years ago)
- Last Synced: 2023-09-24T04:20:33.328Z (over 2 years ago)
- Topics: aws, aws-lambda, cloud-computing, dynamodb, nodejs, s3, serverless
- Language: JavaScript
- Homepage:
- Size: 69.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Multi-Purpose-Serverless-Lambda
This serverless lambda is designed to be used for multiple utilizations across multiple applications and services. This lambda has access to various AWS resources and has an interface for cross-platform operations. It is deployed as AWS Lambda and exposed via API Gateway.
Features:
- AWS DynamoDB Client Interface
- Query Operations
- Put operations
- AWS S3 Client Interface
- Get operations
- Put operations
- AWS SNS Client Interface
- Invoke operations
- Error auditing to S3 Bucket for critical operations
# How to Use
### Local Setup
```
$ npm install
$ node express-app
```
### Invoke a Service (POST request)
```
## sample request body:
{
"event": {
"body": {
"action": "WRITE_COINS_HOURLY_TO_DB",
"days": 10
}
}
}
```
```
{
"event": {
"body": {
"action": "GET_COINS_DB",
"table": "coin-hourly",
"coin": "eos",
"start": 1659982050380,
"end": 1660104217178
}
}
}
```