Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/msfidelis/serverless-offline-sqs-esmq
Simple SQS and ESMQ plugin for Serverless Framework :zap: :zap:
https://github.com/msfidelis/serverless-offline-sqs-esmq
serverless serverless-framework serverless-offline serverless-plugin
Last synced: 28 days ago
JSON representation
Simple SQS and ESMQ plugin for Serverless Framework :zap: :zap:
- Host: GitHub
- URL: https://github.com/msfidelis/serverless-offline-sqs-esmq
- Owner: msfidelis
- License: mit
- Created: 2018-10-05T19:17:29.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T02:54:39.000Z (over 1 year ago)
- Last Synced: 2024-10-04T04:31:46.793Z (about 1 month ago)
- Topics: serverless, serverless-framework, serverless-offline, serverless-plugin
- Language: JavaScript
- Homepage:
- Size: 159 KB
- Stars: 13
- Watchers: 2
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Serverless Offline SQS / ElasticMQ Plugin
This adapter works with ElasticMQ API.
```bash
docker run -it -p 9324:9324 s12v/elasticmq:latest
```## Install
```bash
npm install serverless-offline-sqs-esmq
```## Starting a Queue
```yml
custom:
serverless-offline-sqs-esmq:
apiVersion: '2012-11-05'
endpoint: http://0.0.0.0:9324
region: sa-east-1
accessKeyId: root
secretAccessKey: root
``````yml
resources:
Resources:
BooksQueue:
Type: AWS::SQS::Queue
Properties:
QueueName: BooksQueueExample
```## Using SQS API
```javascript
const options = {
apiVersion: '2012-11-05',
region: 'localhost',
endpoint: "http://0.0.0.0:9324",
sslEnabled: false,
};const sqs = new AWS.SQS(options);
```## Output Log:
```bash
serverless offline start
...
Serverless: Creating Queue BooksQueueExample
...
```Credits: This is a custom fork from [Godu Project](https://www.npmjs.com/package/serverless-offline-sqs)