Skip to content
Simple SQS and ESMQ plugin for Serverless Framework ⚡️ ⚡️
JavaScript
Branch: master
Clone or download
Latest commit 4e19e3a Oct 15, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore dependencies Oct 15, 2018
LICENSE Initial commit Oct 5, 2018
README.md
index.js dependencies Oct 15, 2018
package-lock.json dependencies Oct 15, 2018
package.json dependencies Oct 15, 2018

README.md

Serverless Offline SQS / ElasticMQ Plugin

This adapter works with ElasticMQ API.

docker run -it -p 9324:9324 s12v/elasticmq:latest

Install

npm install serverless-offline-sqs-esmq

Starting a Queue

custom:
  serverless-offline-sqs-esmq:
    apiVersion: '2012-11-05'
    endpoint: http://0.0.0.0:9324
    region: sa-east-1
    accessKeyId: root
    secretAccessKey: root
    
resources:
  Resources:
    BooksQueue:
      Type: AWS::SQS::Queue
      Properties:
        QueueName: BooksQueueExample

Using SQS API

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:

serverless offline start 
...
Serverless: Creating Queue BooksQueueExample
...

Credits: This is a custom fork from Godu Project

You can’t perform that action at this time.