FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

lightmnd/serverless-aws-iot: Devices Bulk registration in AWS IoT Core using Serverless framework and NodeJs · GitHub

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bulk Device Registration in AWS IoT Core using Serverless Framework and Node.js

This tutorial demonstrates how to register multiple devices in bulk in AWS IoT Core using the Serverless Framework and Node.js. It provides a step-by-step guide to set up a Serverless project, configure the necessary AWS services, and register devices in bulk.

Prerequisites

  • AWS account with appropriate permissions to create and manage resources in AWS IoT Core.
  • Node.js and npm (Node Package Manager) installed on your local machine.
  • Serverless Framework CLI installed globally.

Getting Started

Follow these steps to set up the project and register devices in bulk:

  1. Create a NodeJS project using the Serverless framework
serverless create --template aws-nodejs
  1. NODE dependencies installation
  • Install Dependencies
npm install
  1. Configure AWS Credentials Ensure that your AWS credentials are correctly set up on your machine, either by configuring the AWS CLI or setting the environment variables.

Create Access Key and Secret Key of your IaM user, then configure serverless using this command

serverless config credentials --provider aws --key AKIA46U7FRWUVQWOZNHF --secret n0MYdKyDG1McH0SBZ8ZXZBa52b+Rieg94bIy4Dv9
  1. Update Configuration Open the serverless.yml file and update the AWS region, service name, IaM policy, and any other desired configurations.

  2. Implement Device Registration Open the handler.js file and modify the registerDevices function to include the desired device information for bulk registration.

  3. Deploy the Serverless Service

sls deploy
  1. Invoke the function to register the devices in AWS IoT Core.
sls invoke -f registerDevices

About

Devices Bulk registration in AWS IoT Core using Serverless framework and NodeJs

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages


Back | FazBrowse Home | New Git URL