https://github.com/yottahmd/aws-iot-device-registration-example
Example of registering IoT Device Certificate using AWS Lambda and serverless framework
https://github.com/yottahmd/aws-iot-device-registration-example
Last synced: 7 months ago
JSON representation
Example of registering IoT Device Certificate using AWS Lambda and serverless framework
- Host: GitHub
- URL: https://github.com/yottahmd/aws-iot-device-registration-example
- Owner: yottahmd
- Created: 2018-08-28T06:35:34.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-28T07:51:04.000Z (about 7 years ago)
- Last Synced: 2025-03-07T12:33:46.540Z (7 months ago)
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AWS IoT Device Registration using Lambda
This is an example of creating AWS IoT Device and generate Certificate using Lambda.
## Use Case
Set up "Thing" automatically and register to AWS IoT by executing Lambda Function. This is very useful when you have to register a lot of devices at a factory or something.## Notes
- The security is very important. So you have to make sure that anyone can NOT call this Lambda without appropriate permission. (ex: in case using API Gateway, you can use API Key or Custom Authorizer)## Set Up
- Create ThingType
- Create Policy## How to run locally
- Run following command
```
$ sls invoke local -f registerDeviceToAWSIoT -d '{"thingName":"thing001","thingType":"test-thing-type","policy":"test-device-policy"}'
```## How to deploy
- Run following command
```
$ serverless deploy
```
- execute lambda using AWS Console