an introduction to aws iot

14
AWS IoT Danilo Poccia | @danilop

Upload: danilo-poccia

Post on 11-Apr-2017

653 views

Category:

Mobile


0 download

TRANSCRIPT

AWS IoT Danilo Poccia | @danilop

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

One Service, Two Protocols

MQTT + Mutual Auth TLS AWS Auth + HTTPS

Server Auth TLS + Cert TLS + Cert

Client Auth TLS + Cert AWS API Keys

Confidentiality TLS TLS

Protocol MQTT HTTP

Identification AWS ARNs AWS ARNs

Authorization AWS Policy AWS Policy

NEW

AWS IoT Message Broker : Managed Service

Highly Scalable Device Gateway

Millions of devices sending billions of messages

Subscribers Publishers

Simple & Familiar Syntax -  SQL Statement to define topic filter -  Optional WHERE clause -  Advanced JSON support Functions improve signal : noise -  String manipulation (regex support) -  Mathematical operations -  Context based helper functions -  Crypto support -  UUID, Timestamp, rand, etc.

AWS IoT Rules Engine Basics

SELECT * FROM ‘things/thing-2/color’ WHERE color = ‘red’

AWS IoT Rules Engine’s Flexibility

SELECT *, clientId() as MQTTClientId FROM 'one/rule' WHERE startsWith(topic(2), 'IME33') AND (state = 'INIT' OR hydro_temp > surface_temp)","actions": [{ "republish": {

"topic": "controllers/${substring(topic(3), 3, 5)}",

}]

1. AWS Services (Direct Integration)

Rules Engine

Actions

AWS IoT Rules Engine

AWS Lambda

Amazon SNS

Amazon SQS

Amazon S3

Amazon Kinesis

Amazon DynamoDB Amazon RDS

Amazon Redshift

Amazon Glacier

Amazon 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, AWS Lambda, Amazon S3, and more)

AWS IoT Button - “Hello World” of AWS IoT

•  Based on the Amazon dash button hardware (Stateless Wi-Fi Button)

•  Code in the Cloud; no device specific code or flashing required

•  Learn Rules, Shadows and Topics

Call an Uber cab

Order pizza

Start a car

Poke someone on Facebook

“Like” something on Facebook

Mayday button

Tweet Something

Call customer service

Slack it

Approve Expense reports

Count things

Track Things

aws.amazon.com / iot