Reader small image

You're reading from  Learning AWS IoT

Product typeBook
Published inJan 2018
Reading LevelIntermediate
PublisherPackt
ISBN-139781788396110
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Agus Kurniawan
Agus Kurniawan
author image
Agus Kurniawan

Agus Kurniawan is an independent technology consultant, author, and lecturer. He has over 18 years' experience working on various software development projects, including delivering training courses and workshops, and delivering technical writing. He has done a few research activities related to wireless networking, software, and security in multiple universities. Currently, he is pursuing a Ph.D. program in Computer Science in Germany. He has previously written five books for Packt.
Read more about Agus Kurniawan

Right arrow

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 page is locked
Previous PageNext Page
You have been reading a chapter from
Learning AWS IoT
Published in: Jan 2018Publisher: PacktISBN-13: 9781788396110

Author (1)

author image
Agus Kurniawan

Agus Kurniawan is an independent technology consultant, author, and lecturer. He has over 18 years' experience working on various software development projects, including delivering training courses and workshops, and delivering technical writing. He has done a few research activities related to wireless networking, software, and security in multiple universities. Currently, he is pursuing a Ph.D. program in Computer Science in Germany. He has previously written five books for Packt.
Read more about Agus Kurniawan