Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning AWS IoT

You're reading from  Learning AWS IoT

Product type Book
Published in Jan 2018
Publisher Packt
ISBN-13 9781788396110
Pages 278 pages
Edition 1st Edition
Languages
Author (1):
Agus Kurniawan Agus Kurniawan
Profile icon Agus Kurniawan
Toc

Table of Contents (14) Chapters close

Title Page
Packt Upsell
Contributors
Preface
1. Getting Started with AWS IoT 2. Connecting IoT Devices to AWS IoT Platform 3. Optimizing IoT Computing Using AWS Greengrass 4. Building Local AWS Lambda with AWS Greengrass 5. Expanding IoT Capabilities with AWS IoT Button 6. Visualizing AWS IoT Data 7. Building Predictive Analytics for AWS IoT 8. Securing AWS IoT 1. Other Books You May Enjoy Index

Building your IoT project with AWS IoT Button


We will continue to develop IoT projects using AWS IoT Button. We will use the Lambda rule and trigger to perform a certain action. For the demo, we save a message from AWS IoT Button into the AWS database, DynamoDB.

You can see this scenario in the following figure. Each button clicked from AWS IoT Button will be filtered and then call AWS Lambda. Inside AWS Lambda, the program will store a message into the database, AWS DynamoDB:

Configuring AWS DynamoDB

Firstly, we create a table on AWS DynamoDB. You can open a browser and navigate to https://console.aws.amazon.com/dynamodb. Then, you can create a new table. For instance, we set the table name as aws-iot-button-db. We also set the primary key as msg-id with the String data type. You can see the AWS DynamoDB table configuration in the following screenshot:

With this we have successfully created AWS DynamoDB on Amazon AWS. Next, we will connect it with AWS Lambda.

Building Lambda and its rule

After...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime