https://github.com/stelligent/iot-pipeline
https://github.com/stelligent/iot-pipeline
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/stelligent/iot-pipeline
- Owner: stelligent
- License: mit
- Created: 2018-12-18T00:23:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-07-07T01:28:05.000Z (almost 4 years ago)
- Last Synced: 2024-12-26T00:26:54.927Z (over 1 year ago)
- Language: JavaScript
- Size: 7.19 MB
- Stars: 1
- Watchers: 7
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# AWS IoT Example Project
AWS IoT simulator based on [this AWS Blog Post](https://aws.amazon.com/blogs/iot/device-simulation-with-aws-iot-and-aws-lambda/).
### Requirements
- [NodeJS 8.10](https://nodejs.org/en/)
- [cfnctl](https://github.com/stelligent/cfnctl/)
# Setup
Deploy your stack
```
cfnctl deploy -s iot-simulator -t ./iot.yaml -p ./parameters.json
```
Upload the Lambda function to S3
```
cfnctl lambda -s ./simulator/src
```
Deploy the Lambda stack
```
cfnctl deploy -s iot-simulator-lambda -t ./simulator/simulator.yaml -p ./simulator/parameters.json
```
Create a test event in the simulator lambda
```
{
"esEndpoint": "search-iot-es-us-west-2-sadf98asdg9fg90dafg90adg9dfg.us-west-2.es.amazonaws.com",
"esDomainArn": "arn:aws:es:us-west-2:0000000000000:domain/iot-es-us-west-2",
"topic": "simulator_rule",
"simTime": 10000,
"interval": 500,
"numDevice": 3
}
```