AWS IoT - files.meetup.comfiles.meetup.com/4507922/LA AWS IoT Meetup.pdf · •Setting up AWS IoT...

18
AWS IoT Presented by: Ravikumar Raghunathan

Transcript of AWS IoT - files.meetup.comfiles.meetup.com/4507922/LA AWS IoT Meetup.pdf · •Setting up AWS IoT...

Page 1: AWS IoT - files.meetup.comfiles.meetup.com/4507922/LA AWS IoT Meetup.pdf · •Setting up AWS IoT offering using vanilla Raspberry Pi. •Integrate with other AWS services to start

AWS IoT

Presented by: Ravikumar Raghunathan

Page 2: AWS IoT - files.meetup.comfiles.meetup.com/4507922/LA AWS IoT Meetup.pdf · •Setting up AWS IoT offering using vanilla Raspberry Pi. •Integrate with other AWS services to start

Agenda

• An Introduction to IoT

• AWS IoT & Ecosystem Advantage

• AWS IoT Technical Deep Dive

• Aws IoT Demo

Page 3: AWS IoT - files.meetup.comfiles.meetup.com/4507922/LA AWS IoT Meetup.pdf · •Setting up AWS IoT offering using vanilla Raspberry Pi. •Integrate with other AWS services to start

IoT Overview

• What if everything around you got an IP ?

• Evolution of IoT

– M2M, Internet, Mobile, IoT to IoE

• 20+ billion devices by 2020.

• Security & Privacy

• BI & AI

• IoT Industries & Standards

Page 4: AWS IoT - files.meetup.comfiles.meetup.com/4507922/LA AWS IoT Meetup.pdf · •Setting up AWS IoT offering using vanilla Raspberry Pi. •Integrate with other AWS services to start

Some IoT Use cases

• Smart Home

– Home Automation, Environment Monitoring, Security

• Smart Cities

– Public transportation, Parking

• Healthcare

• Lifestyle

– Wearable Computing, Pets, Toys & Drones

• Agriculture

Page 5: AWS IoT - files.meetup.comfiles.meetup.com/4507922/LA AWS IoT Meetup.pdf · •Setting up AWS IoT offering using vanilla Raspberry Pi. •Integrate with other AWS services to start

AWS IoT Features Overview

• IoT Framework for the Cloud

• Provides Secure Bi-directional communication between Device and AWS Services

• Provides a scalable solution to collect, analyze and take action based on device telemetry

• Provides an easy way to develop end user applications to control connected devices.

Page 6: AWS IoT - files.meetup.comfiles.meetup.com/4507922/LA AWS IoT Meetup.pdf · •Setting up AWS IoT offering using vanilla Raspberry Pi. •Integrate with other AWS services to start

Benefits• Ease of configuration

• Security

• Authentication & Authorization

• Scalibility & Reliability

• Integration with AWS ecosystem

• Logging - Cloudwatch

• Cost

Page 7: AWS IoT - files.meetup.comfiles.meetup.com/4507922/LA AWS IoT Meetup.pdf · •Setting up AWS IoT offering using vanilla Raspberry Pi. •Integrate with other AWS services to start

Components of AWS IoT• IoT Device Gateway

• Message Broker

• Things Registry

• Policy & Certificates

• Thing Shadow

• Rules Engine

• AWS IoT SDK

Page 8: AWS IoT - files.meetup.comfiles.meetup.com/4507922/LA AWS IoT Meetup.pdf · •Setting up AWS IoT offering using vanilla Raspberry Pi. •Integrate with other AWS services to start

All about Things• Thing

– A Thing is a cloud representation of a single device/hub.

– A Thing can have 3 attributes attached to it.

• Thing type

– A representation of a device type.

– Thing attached to a thing type can have 50 attributes

– A thing can only have 1 thing type and a thing type can have many things associated to it.

Page 9: AWS IoT - files.meetup.comfiles.meetup.com/4507922/LA AWS IoT Meetup.pdf · •Setting up AWS IoT offering using vanilla Raspberry Pi. •Integrate with other AWS services to start

All about Things – Cont’d• Thing Registry

– A searchable collection of things.

– Exposed to AWS CLI and API.

• Thing Shadow

– A JSON document of the current and desired state of the thing

– Each thing maintains a shadow.

– When the current and desired states are different from each other an MQTT message is triggered to the shadow topic.

– Applications can retrieve current state and set desired device state.

Page 10: AWS IoT - files.meetup.comfiles.meetup.com/4507922/LA AWS IoT Meetup.pdf · •Setting up AWS IoT offering using vanilla Raspberry Pi. •Integrate with other AWS services to start

AWS IoT – Message Broker• Protocols

– MQTT

• MQTT version 3.1.1

• Supports QoS 0 or 1

• Device Shadow is also a Topic

– REST API

• Only message publishing is supported

– MQTT over Websockets

• wss://<endpoint>.iot.<region>.amazonaws.com/mqtt

Page 11: AWS IoT - files.meetup.comfiles.meetup.com/4507922/LA AWS IoT Meetup.pdf · •Setting up AWS IoT offering using vanilla Raspberry Pi. •Integrate with other AWS services to start

AWS IoT – Rule Engine• Rules are analyzed on the MQTT Topic Stream.

• Uses an SQL-Like syntax to process MQTT messages

• Actions are performed based on the outcome of the rules.

• A single rule can have multiple actions attached to it.

• Actions have necessary AWS Service policy attached to it.

• Rules & Actions interact with other AWS services like S3, SNS, SQS, Lambda, DynamoDB, Kinesis & Cloudwatch.

Page 12: AWS IoT - files.meetup.comfiles.meetup.com/4507922/LA AWS IoT Meetup.pdf · •Setting up AWS IoT offering using vanilla Raspberry Pi. •Integrate with other AWS services to start

Integration with other AWS• Lambda

• DynamoDB

• SNS

• SQS

• S3

• Cloudwatch (alarm & metrics)

• Kinesis

• Amazon Elasticsearch Service

Page 13: AWS IoT - files.meetup.comfiles.meetup.com/4507922/LA AWS IoT Meetup.pdf · •Setting up AWS IoT offering using vanilla Raspberry Pi. •Integrate with other AWS services to start
Page 14: AWS IoT - files.meetup.comfiles.meetup.com/4507922/LA AWS IoT Meetup.pdf · •Setting up AWS IoT offering using vanilla Raspberry Pi. •Integrate with other AWS services to start
Page 15: AWS IoT - files.meetup.comfiles.meetup.com/4507922/LA AWS IoT Meetup.pdf · •Setting up AWS IoT offering using vanilla Raspberry Pi. •Integrate with other AWS services to start

Demo use case overview• Setting up AWS IoT offering using vanilla Raspberry Pi.

• Integrate with other AWS services to start consuming data.

• Will be demoing the data being consumed by S3, SQS, DynamoDB, SNS and Lambda

• Setting up the device shadow with the current temperature and luminosity data

• Sending a message back to the buzzer on the device based on touch input.

Page 16: AWS IoT - files.meetup.comfiles.meetup.com/4507922/LA AWS IoT Meetup.pdf · •Setting up AWS IoT offering using vanilla Raspberry Pi. •Integrate with other AWS services to start

AWS Services used for demo

• AWS IoT

• DynamoDB

• Lambda

• S3

• SNS

• SQS

Page 17: AWS IoT - files.meetup.comfiles.meetup.com/4507922/LA AWS IoT Meetup.pdf · •Setting up AWS IoT offering using vanilla Raspberry Pi. •Integrate with other AWS services to start

Use case 1

Page 18: AWS IoT - files.meetup.comfiles.meetup.com/4507922/LA AWS IoT Meetup.pdf · •Setting up AWS IoT offering using vanilla Raspberry Pi. •Integrate with other AWS services to start

Use case 2