Introduction To AWS IoT - SoCalCodeCamp Nov 2016

24
Intro to aws iot Dexter Baga | [email protected] | @dexterbaga

Transcript of Introduction To AWS IoT - SoCalCodeCamp Nov 2016

Page 1: Introduction To AWS IoT - SoCalCodeCamp Nov 2016

Intro to

aws iot 👦 Dexter Baga | [email protected] | @dexterbaga

Page 2: Introduction To AWS IoT - SoCalCodeCamp Nov 2016

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

 

Page 3: Introduction To AWS IoT - SoCalCodeCamp Nov 2016

What is iOt ?

Page 4: Introduction To AWS IoT - SoCalCodeCamp Nov 2016

Billions of THINGS

*Some images were taken from www.iotlist.co

Page 5: Introduction To AWS IoT - SoCalCodeCamp Nov 2016

Aws iot“Easily and securely connect devices to the cloud. Reliably scale to billions of devices and trillions of messages.”

Page 6: Introduction To AWS IoT - SoCalCodeCamp Nov 2016

AWS IoT

AWS IoT

Page 7: Introduction To AWS IoT - SoCalCodeCamp Nov 2016

AWS IoT

Page 8: Introduction To AWS IoT - SoCalCodeCamp Nov 2016

Aws iot

• Provided by Amazon• Free, $0.00, nada, zip, zilch – got

it?• Not required to use AWS IoT

Page 9: Introduction To AWS IoT - SoCalCodeCamp Nov 2016

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

Page 10: Introduction To AWS IoT - SoCalCodeCamp Nov 2016

device

• Stores metadata for devices• Identifiable name for the device• Device organization

Page 11: Introduction To AWS IoT - SoCalCodeCamp Nov 2016

device

• Virtual representation of device• Device state since last

connection• Apps can interact with device

shadow

Page 12: Introduction To AWS IoT - SoCalCodeCamp Nov 2016

device• Strong authentication Uses TLS Certificates TLS mutual authentication• End to End encryption

Page 13: Introduction To AWS IoT - SoCalCodeCamp Nov 2016

device• Fine grained permission control• Uses AWS Identity and Access

Management (IAM) Policies

Page 14: Introduction To AWS IoT - SoCalCodeCamp Nov 2016

grant access{     "Version":"2012-10-17",   "Statement":[        {           "Effect":"Allow",         "Action":[              "iot:Connect",            "iot:Publish"         ],         "Resource":"*"      }   ]}

Page 15: Introduction To AWS IoT - SoCalCodeCamp Nov 2016

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"      }   ]}

Page 16: Introduction To AWS IoT - SoCalCodeCamp Nov 2016

Rules Engine

Device Gatew

ay

Authorization

Authentication

Device Shado

w

Device Registr

y

Device SDK

Progress Check !

Moving on to Device Gateway

Page 17: Introduction To AWS IoT - SoCalCodeCamp Nov 2016

Device

• Publish and Subscribe pattern• Termination point for device

traffic• Data ingestion layer of AWS IoT

Page 18: Introduction To AWS IoT - SoCalCodeCamp Nov 2016

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

Page 19: Introduction To AWS IoT - SoCalCodeCamp Nov 2016

Publish and Subscribe using topics

demo

{     "ColorCode":"R",   "Level":"45",   "SensorType":"Moisture",   "TimeStamp":"20160614 02:43"}

sensor/region12/moisture

Page 20: Introduction To AWS IoT - SoCalCodeCamp Nov 2016

Publish and Subscribe using topics

sensor/region71/moisture

sensor/region62/moisture

sensor/region62/moisture

sensor/region71/moisture

sensor/region39/moisture

Demo with Mqtt tool

Page 21: Introduction To AWS IoT - SoCalCodeCamp Nov 2016

Rules• Gateway to other AWS services• Listens for messages that are

sent over the wire and filter messages of interest

Page 22: Introduction To AWS IoT - SoCalCodeCamp Nov 2016

data, data, and more dataIntegrates to other AWS Services

CloudWatch DynamoDB Amazon Elastic

Search Kinesis

S3 SNS SQS Lambda Kinesis Firehose

Demo Rules Engine

Page 23: Introduction To AWS IoT - SoCalCodeCamp Nov 2016

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!

Page 24: Introduction To AWS IoT - SoCalCodeCamp Nov 2016

THANKS!

Yes, it looks like an egg!