Serverless Service for Serverless Notifications (AWS IoT)
-
With the Serverless Framework v1.x, run `serverless install --url
-
Inside the create-role folder, run
npm install
andnode index
to create an IoT role. I've named the role as serverless-notifications. If you want to rename, modify this file and the handler.js file. -
Deploy the Lambda function with
serverless deploy
-
Edit the index.html file that is placed inside the frontend folder to use your Lambda endpoint
-
To modify the IoT client, follow these steps:
5.1 Browse the iot folder
5.2 Edit the index.js file
5.3 Install dependencies withnpm install
5.4 Runnode make-bundle
5.5 Replace the bundle.js inside the frontend folder by this new bundle.js file