An open API service indexing awesome lists of open source software.

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

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
}
}
}
```