Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 757 Bytes

README.md

File metadata and controls

48 lines (32 loc) · 757 Bytes

Offline AWS Serveless Worker

AWS Worker with Node + SQS + Lambda

Technologies

  • Serverless 2.5.x
  • Node 14.x
  • ElasticMQ latest

How execute

  1. Clone repo
git clone [email protected]:mrbrunelli/aws-node-sqs-worker.git
  1. Setup Docker
yarn docker:up
  1. Run Serverless Offline
yarn start:local

Messages and Queues

The SQS event is triggered after sending a message, with 5 seconds delay.

  1. Call listQueue lambda to check queues url
curl http://localhost:3000/local/queues
  1. Create new message. Message displays in serverless console.
curl --header "Content-Type: application/json" \
  --request POST \
  --data 'My message' \
  http://localhost:3000/local/produce