aws iot - files.meetup.comfiles.meetup.com/4507922/la aws iot meetup.pdf · •setting up aws iot...
TRANSCRIPT
AWS IoT
Presented by: Ravikumar Raghunathan
Agenda
• An Introduction to IoT
• AWS IoT & Ecosystem Advantage
• AWS IoT Technical Deep Dive
• Aws IoT Demo
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
Some IoT Use cases
• Smart Home
– Home Automation, Environment Monitoring, Security
• Smart Cities
– Public transportation, Parking
• Healthcare
• Lifestyle
– Wearable Computing, Pets, Toys & Drones
• Agriculture
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.
Benefits• Ease of configuration
• Security
• Authentication & Authorization
• Scalibility & Reliability
• Integration with AWS ecosystem
• Logging - Cloudwatch
• Cost
Components of AWS IoT• IoT Device Gateway
• Message Broker
• Things Registry
• Policy & Certificates
• Thing Shadow
• Rules Engine
• AWS IoT SDK
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.
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.
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
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.
Integration with other AWS• Lambda
• DynamoDB
• SNS
• SQS
• S3
• Cloudwatch (alarm & metrics)
• Kinesis
• Amazon Elasticsearch Service
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.
AWS Services used for demo
• AWS IoT
• DynamoDB
• Lambda
• S3
• SNS
• SQS
Use case 1
Use case 2