AWS Worker with Node + SQS + Lambda
- Serverless 2.5.x
- Node 14.x
- ElasticMQ latest
- Clone repo
git clone [email protected]:mrbrunelli/aws-node-sqs-worker.git
- Setup Docker
yarn docker:up
- Run Serverless Offline
yarn start:local
The SQS event is triggered after sending a message, with 5 seconds delay.
- Call listQueue lambda to check queues url
curl http://localhost:3000/local/queues
- Create new message. Message displays in serverless console.
curl --header "Content-Type: application/json" \
--request POST \
--data 'My message' \
http://localhost:3000/local/produce