This document discusses how to get started with AWS IoT. It provides an overview of the AWS IoT platform and its key components, including the device registry, message broker, rules engine, device shadows, and authentication and authorization. It also highlights several AWS customers who are using AWS IoT for applications like connected home devices, smart city solutions, and connected vehicles. The document concludes by explaining how to get started with AWS IoT through the available SDKs and starter kits.
1. AWS Cloud Kata for Start-Ups and Developers
Hong Kong
Getting Started with AWS IoT
Ken Chan
Business Development Manager, Greater China
kenchan@amazon.com
2. Things
Memory
Logic
The AWS IoT Platform
AWS IoT
Registry
Message routing Shadow
Device Gateway
Authentication &
Authorization
4. The Power Of Speech: Alexa
Alexa Voice
Services
Amazon
Echo
Alexa
Skills KitIoT Apps, Back
End System, Big
Data, Machine
Learning, Storage
Companion
Apps
Lambda
AWS IoT
Voice Control
• Alexa - With the Alexa Skills Kit,
you can easily build and add your
own skills to Alexa.
• AWS IoT manages the connection
devices and integration with ASK,
as well as other backend systems
and companion apps.
• Build skills for Alexa using AWS
Lambda. Simply write the code
using and upload it as a Lambda
function.
• Alexa Voice Service brings voice-
powered experiences to any
connected devices.
DeviceConnection
5. We launched Hive towards the end of
2013 and today we have 75,000
customers… The speed at which we
delivered Hive is directly related to
our decision to use AWS cloud
Seb Chakraborty
Head of Web and Platform Design
”
“ • British Gas started a project called Hive, part of its
Connected Homes Strategy.
• Hive Active Heating allows users to control heating and
hot water remotely from mobile, laptop or
smartphones.
• Such a flexibility allows users to control heating exactly
how they need it and save up to £150 a year on utility
bills
British Gas brings central heating control to smartphones with AWS
British Gas uses AWS cloud for scaling the
project and to deliver API toolsets around it.
6. Sprinkler
Controller
Lambda Function
AWS Customers making an impact with IoT
Wifi Connected Home Sprinkler System. Easily
calibrate soil, vegetation, slope, sun exposure, and
nozzle types
By running on AWS, project they will save $90,000
per year. For customers, striving to save 1 billion
gallons of water in 2016.
7. The Philips HealthSuite digital platform
analyzes and stores 15 PB of patient data
gathered from 390 million imaging
studies, medical records, and patient
inputs
Running on AWS provides the reliability,
performance and scalability that Philips
needs to help protect patient data as its
global digital platform grows at the rate of
one petabyte per month.
AWS Customers making an impact with IoT
Video Testimonial
8. The BMW Group
Connected-car application collects sensor
data from BMW 7 Series cars to give drivers
dynamically updated map information.
Built its new car-as-a-sensor (CARASSO)
service in only six months
CARASSO can adapt to rapidly changing
load requirements; can scale up and down
by two orders of magnitude within 24 hours.
By 2018 CARASSO is expected to process
data collected by a fleet of 100,000 vehicles
traveling more than eight billion kilometers.
AWS Customers making an impact with IoT
Video Testimonial
10. Technical characteristics
• Mobile networks: kBit/s
• Lightweight:
Every gram, every watt counts
Low RAM, low CPU, low power
• Near real-time: Seconds count
• Large-impact use cases
11. Challenges
• How to handle constrained resources?
• How to manage millions of things?
• How to communicate securely?
• How to deal with unreliable connections?
?
12. MQTT
MQTT vs HTTPS:
• 93x faster throughput
• 11.89x less battery to send
• 170.9x less battery to receive
• 50% less power to keep connected
• 8x less network overhead
Source:
http://stephendnicholas.com/archives/1217
• OASIS standard protocol (v3.1.1)
• Lightweight, pub-sub, transport protocol
that is useful for connected devices
• MQTT is used on oil rigs, connected
trucks, and many more sensitive and
resource-sensitive scenarios
• Customers have needed to build,
maintain, and scale a broker to use
MQTT with cloud applications
13. Challenges
• How to handle constrained resources?
• How to manage millions of things?
• How to communicate securely?
• How to deal with unreliable connections?
?
✔
14. AWS IoT Message Broker
DEVICE GATEWAY
Communicate with devices via
MQTT and HTTP
15. Highly scalable
Pub/Sub broker
MQTT
Subscribers
Publishers
Secure by default
Connect securely via X509 certs and
TLS v1.2 client mutual auth
Multi-protocol message gateway
Millions of devices and apps can connect
over MQTT, HTTP or WebSocket
topic
Elastic Pub/Sub broker
Go from 1 to 1 billion long-lived, bi-directional
connections with zero provisioning
AWS IoT: Securely connect devices
22. 1. AWS services
(direct integration)
Rules Engine
Actions
AWS IoT Rules Engine
LambdaSNS SQS
S3 Amazon KinesisDDB RDS
Amazon Redshift
Amazon
Glacier
EC2
3. External endpoints
(via Lambda and SNS)
Rules Engine connects AWS
IoT to external endpoints and
AWS services.
2. Rest of AWS
(via Amazon Kinesis, Lambda,
S3, and more)
ElasticSearch
On premise
data center
23. Challenges
• How to handle constrained resources?
• How to manage millions of things?
• How to communicate securely?
• How to deal with unreliable connections?
?
✔
✔
24. AWS IoT Security: Authentication and
Authorization
AUTHENTICATION
Secure with mutual
authentication and encryption
AUTHENTICATION
AUTHORIZATION
Secure with mutual
authentication and encryption
26. Challenges
• How to handle constrained resources?
• How to manage millions of things?
• How to communicate securely?
• How to deal with unreliable connections?
?
✔
✔
✔
27. AWS IoT Thing Shadow
THING SHADOW
Persistent thing state
during intermittent
connections
SHADOW
Persistent thing state
during intermittent
connections
APPLICATIONS
29. Devices in motion: Challenges
• How to handle constrained resources?
• How to manage millions of things?
• How to communicate securely?
• How to deal with unreliable connections?
?
✔
✔
✔
✔
30. AWS IoT
DEVICE SDK
Set of client libraries to
connect, authenticate and
exchange messages
DEVICE GATEWAY
Communicate with devices via
MQTT and HTTP
AUTHENTICATION
AUTHORIZATION
Secure with mutual
authentication and encryption
RULES ENGINE
Transform messages
based on rules and
route to AWS Services
AWS Services
- - - - -
3P Services
DEVICE SHADOW
Persistent thing state
during intermittent
connections
APPLICATIONS
AWS IoT API
DEVICE REGISTRY
Identity and Management of
your things
31. Simple Pay as you go and Predictable Pricing
• Pay as you go. No minimum fees
• $5 per million messages published to, or delivered
in US East (N. Virginia), US West (Oregon), EU
(Ireland) $8 in Asia Pacific (Tokyo)
AWS IoT
Free Tier
250,000 Messages Per Month Free for first 12
Months
32. Pricing Example
100 sensors * 30 days
* 24 hours * 60
minutes =
4.38 million messages
1 meter * 100 readings * 30
days * 24 hours * 60
minutes =
4.38 million messages
100 Sensors:
Publishing 1x/minute
DynamoDB Table: Receives all Sensor Data
Metering Unit: Receives all Sensor Data
1 table * 100 readings * 30
days * 24 hours * 60
minutes =
4.38 million messages
4.38 million publishes from sensors: 4.38 * $5 = $21.90
4.38 million deliveries to a metering unit: 4.38 * $5 = $21.90
4.38 million deliveries to DynamoDB: $0
AWS IoT
33.
34. Getting Started with AWS IoT
How do I get started?
AWS IoT SDKs IoT Starter Kits
35. Get Started with AWS IoT Device SDK
C-SDK
(Ideal for embedded
OS)
JS-SDK
(Ideal for Embedded
Linux Platforms)
Arduino Library
(Arduino Yun)
Mobile SDK
(Android and iOS)
36. AWS allows you to
focus on innovation,
not infrastructure