Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/diegozanon/serverless-notifications
Serverless Service for Serverless Notifications (AWS IoT)
https://github.com/diegozanon/serverless-notifications
aws-iot notifications serverless
Last synced: 3 months ago
JSON representation
Serverless Service for Serverless Notifications (AWS IoT)
- Host: GitHub
- URL: https://github.com/diegozanon/serverless-notifications
- Owner: diegozanon
- License: mit
- Created: 2016-11-04T12:43:49.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-31T11:09:31.000Z (about 2 years ago)
- Last Synced: 2024-11-08T14:38:33.373Z (3 months ago)
- Topics: aws-iot, notifications, serverless
- Language: JavaScript
- Size: 321 KB
- Stars: 135
- Watchers: 5
- Forks: 30
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Serverless Notifications
Serverless Service for Serverless Notifications (AWS IoT)## Tutorial
Blog post: [Serverless Notifications on AWS](https://web.archive.org/web/20200930220520/https://zanon.io/posts/serverless-notifications-on-aws) (Nov 5th 2016)
Note: at the time it was not an issue, but currently it is necessary to use the ATS IoT endpoint (use `iot.describeEndpoint({ endpointType: 'iot:Data-ATS' }`). The code was fixed in this repository, but not in the blog post.
Demo: https://serverless-notifications.zanon.dev
## Usage
1. With the Serverless Framework v1.x, run `serverless install --url https://github.com/diegozanon/serverless-notifications`
2. Inside the **create-role** folder, run `npm install` and `node index` to create an IoT role. I've named the role as **serverless-notifications-iot**. If you want to rename, modify this file and the **handler.js** file.
3. Deploy the Lambda function with `serverless deploy`
4. Edit the **index.html** file that is placed inside the **frontend** folder to use your Lambda endpoint
5. 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 with `npm install`
5.4 Run `node make-bundle`
5.5 Replace the **bundle.js** inside the **frontend** folder by this new **bundle.js** file6. Deploy the frontend to S3