Introduction To AWS IoT - SoCalCodeCamp Nov 2016
-
Upload
dexter-baga -
Category
Internet
-
view
119 -
download
0
Transcript of Introduction To AWS IoT - SoCalCodeCamp Nov 2016
Intro to
aws iot 👦 Dexter Baga | [email protected] | @dexterbaga
Some questionsWhat is IoT? How can I connect
my device to AWS IoT?
Is it secure?
Can I use other AWS Services?
Can I get the current state of
my device ?
How to get started with
AWS IoT
What is iOt ?
Billions of THINGS
*Some images were taken from www.iotlist.co
Aws iot“Easily and securely connect devices to the cloud. Reliably scale to billions of devices and trillions of messages.”
AWS IoT
AWS IoT
AWS IoT
Aws iot
• Provided by Amazon• Free, $0.00, nada, zip, zilch – got
it?• Not required to use AWS IoT
develop× AWS IoT SDK’s C, JavaScript, Python client libraries Open Source libraries i.e. mosquito× AWS IoT Starter Kits https://aws.amazon.com/iot/getting-started/#kits
device
• Stores metadata for devices• Identifiable name for the device• Device organization
device
• Virtual representation of device• Device state since last
connection• Apps can interact with device
shadow
device• Strong authentication Uses TLS Certificates TLS mutual authentication• End to End encryption
device• Fine grained permission control• Uses AWS Identity and Access
Management (IAM) Policies
grant access{ "Version":"2012-10-17", "Statement":[ { "Effect":"Allow", "Action":[ "iot:Connect", "iot:Publish" ], "Resource":"*" } ]}
limit access{ "Version":"2012-10-17", "Statement":[ { "Effect":"Allow", "Action":[ "iot:Connect", "iot:Subscribe" ], "Resource":"arn:aws:iot:us-east-1:191422798891:topic/test/message" } ]}
Rules Engine
Device Gatew
ay
Authorization
Authentication
Device Shado
w
Device Registr
y
Device SDK
Progress Check !
Moving on to Device Gateway
Device
• Publish and Subscribe pattern• Termination point for device
traffic• Data ingestion layer of AWS IoT
Publish and Subscribe using topics× Use Topics to classify messages Publish topic : 9003/device/temperature/low 9003/device/temperature/high Subscribe topic: 9003/device/temperature/high
demo
Publish and Subscribe using topics
demo
{ "ColorCode":"R", "Level":"45", "SensorType":"Moisture", "TimeStamp":"20160614 02:43"}
sensor/region12/moisture
Publish and Subscribe using topics
sensor/region71/moisture
sensor/region62/moisture
sensor/region62/moisture
sensor/region71/moisture
sensor/region39/moisture
Demo with Mqtt tool
Rules• Gateway to other AWS services• Listens for messages that are
sent over the wire and filter messages of interest
data, data, and more dataIntegrates to other AWS Services
CloudWatch DynamoDB Amazon Elastic
Search Kinesis
S3 SNS SQS Lambda Kinesis Firehose
Demo Rules Engine
Quick reviewWhat is IoT? How can I connect
my device to AWS IoT?
Is it secure?
Can I use other AWS Services?
Can I get the current state of
my device ?
How to get started with
AWS IoT
Aws sdk Yes!
Yes! Yes! Sign-up!
THANKS!
Yes, it looks like an egg!