SlideShare a Scribd company logo
IoT on Amazon Web Services
Julien Simon
Principal Technical Evangelist
Amazon Web Services

julsimon@amazon.fr
@julsimon

17/11/2016
Agenda
•  A simple definition of the Internet of Things
•  IoT projects running on AWS
•  The AWS IoT platform
–  Devices & SDKs
–  The MQTT protocol
–  Moving IoT data to the cloud
–  Demo on the Arduino Yùn platform
•  Q&A
The Internet of Things
RESOURCE-CONSTRAINED
COMPUTING DEVICES
DEPLOYED IN THE THOUSANDS,
MAYBE THE MILLIONS
ABLE TO RUN FOR YEARS"
WITHOUT HUMAN INTERVENTION
COLLECTING AND SENDING "
STREAMS OF DATA 24/7/365"
"
and this is the real challenge in IoT !
Millions of devices
sending billions of
messages
Receivers
Senders
An Overview of AWS IoT (November 2016)
An Overview of AWS IoT (November 2016)
a = 2
More on this later J
IoT projects running on AWS
AWS IoT
https://aws.amazon.com/solutions/case-studies/philips/
http://www.usa.philips.com/healthcare/articles/healthsuite-device-cloud
Streaming, analysis, storage
and visualization of data
coming from 200,000
farming machines

Precision agriculture and
yield optimization for
farmers

New business model for
John Deere
https://www.youtube.com/watch?v=uq4kQPsM4cQ
“Car as a Sensor”

Collect sensor data
from BMW 7 Series cars
to give drivers dynamically
updated map information

100,000 vehicles by 2018

Service launched "
in 6 months
https://aws.amazon.com/solutions/case-studies/bmw/
Connected Roomba
launched in 2015 

More than 45 million
square meters mapped

Discovery and interaction
with Smart Home devices
https://aws.amazon.com/solutions/case-studies/irobot/
More IoT applications based on AWS
Thermomix
Consumer equipment
Soitec
Semiconductors
SPS
Motors
Siemens Power & Gas
Energy production
Veolia Water
Water systems
Amazon
Retail
Une communication natuelle
The AWS IoT Platform
AWS Global Infrastructure
14 Regions
38 Availability Zones
63 Edge Locations
AWS IoT available
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
- - - - - 
3rd party
DEVICE SHADOW
Persistent thing state during
intermittent connections
APPLICATIONS
AWS IoT API
DEVICE REGISTRY
Identity and Management of
your things
Pricing

•  No minimum fee
•  You are only charged on the number of
incoming and outgoing messages
•  1 message = 512 bytes maximum
•  Free tier: 250K free messages / month for
12 months
•  No charge when delivering to Amazon
S3, Amazon DynamoDB, AWS Lambda,
Amazon Kinesis, Amazon SNS, and
Amazon SQS.
AWS IoT: Devices & SDKs
Official AWS IoT Starter Kits
Software platforms supported by AWS IoT
•  Arduino Yún https://github.com/aws/aws-iot-device-sdk-arduino-yun 
•  Javascript https://github.com/aws/aws-iot-device-sdk-js 
•  Embedded C https://github.com/aws/aws-iot-device-sdk-embedded-C 
•  Android https://github.com/aws/aws-sdk-android/ 
•  iOS https://github.com/awslabs/aws-sdk-ios-samples 
•  Java (07/16) https://github.com/aws/aws-iot-device-sdk-java 
•  Python (07/16) https://github.com/aws/aws-iot-device-sdk-python
Managing things
•  Thing Registry
•  Secure Identity for Things: one certificate per thing (mandatory)
•  Secure Communications with Things: one keypair per thing (mandatory)

•  Fine-grained Authorization (based on Amazon IAM)
–  Thing Management
–  Access to messages
–  Access to AWS services

https://aws.amazon.com/security/ 
https://aws.amazon.com/compliance/
https://aws.amazon.com/compliance/eu-data-protection/
AWS IoT: The MQTT Protocol
Protocols supported by AWS IoT
•  MQTT over HTTPS: publish and subscribe"
(IPv4 and IPv6)
•  MQTT over WebSockets: publish and subscribe
–  Security is managed with AWS Signatures v4
•  HTTPS publish only
MQTT Protocol
MQTTS vs HTTPS: 

93x faster throughput
11.89x less battery to send
170.9x less battery to receive
50% less power to stay connected
8x less network overhead
Source:
http://stephendnicholas.com/archives/1217 
•  OASIS standard protocol (v3.1.1)
•  Lightweight transport protocol that is
useful for connected devices
•  Publish-subscribe with topics
•  MQTT is used on oil rigs, connected
trucks, and many more critical
applications
•  Until now, customers had to build,
maintain and scale a broker to use MQTT
with cloud applications
MQTT: device-to-device communication
mydevices/alert
MQTT: collect data from a device
mydevices/4
mydevices/4
MQTT: aggregate data from many devices
mydevices/#
mydevices/1
mydevices/2
mydevices/3
….
Amazon "
DynamoDB
Applications
MQTT: update a device
mydevices/4
mydevices/4
MQTT: QoS 0 (at most once)"

1
2
3
4
5
6
1,2,3,5,6
Publish QoS0
MQTT: QoS 1 (at least once)
1
2
3
4
5
4
1,2,3,4,5,6
6
PUBLISH QoS1
PUBLISH QoS1
PUBACK
MQTT.fx
http://mqttfx.jfx4ee.org/
AWS IoT: Moving data to the cloud
Collect Store Analyze Consume
A
iOS
 Android
Web Apps
Logstash
Amazon
RDS
Amazon
DynamoDB
Amazon
ES
Amazon

S3
Apache
Kafka
Amazon

Glacier
Amazon

Kinesis
Amazon

DynamoDB
Amazon
Redshift
Impala
Pig
Amazon ML
Streaming
Amazon

Kinesis
AWS
Lambda
AmazonElasticMapReduce
Amazon
ElastiCache
SearchSQLNoSQLCache
StreamProcessing
Batch
Interactive
Logging
StreamStorage
IoT
Applications
FileStorage
Analysis&Visualization
Hot
Cold
Warm
Hot
Slow
Hot
ML
Fast
Fast
Amazon
QuickSight
Transactional Data
File Data
Stream Data
Notebooks
Predictions
Apps & APIs
Mobile
Apps
IDE
Search Data
ETL
1. AWS Services
(Direct Integration)
Rules Engine
Actions
AWS IoT Rules
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 connect AWS IoT to
External Endpoints "
and AWS Services
2. Rest of AWS"
(via Amazon Kinesis, AWS
Lambda, Amazon S3, and
more)
Amazon
CloudWatch
Amazon "
Elasticsearch
Amazon 
Machine "
Learning
AWS IoT Rules Engine
Rule
Name
Description
SQL Statement
Array of Actions
Simple & Familiar Syntax
-  SQL Statement to define topic filter
-  Optional WHERE clause
-  Advanced JSON support

Many functions available
-  String manipulation (regex support)
-  Mathematical operations
-  Crypto support
-  UUID, Timestamp, rand, etc.
From AWS IoT to an External Endpoint
Lambda Function
AWS Services
Execution
Role
 Policy
External
Endpoint
Permission
Private Key
& Certificate
Thing/Device
SDK
Rules Engine
Policy
 Rule
AWS IoT
Select * from ‘iotbutton/+’
Action
AWS IoT Demo
Personal picture
Hardware Shopping List
Software Shopping List

Arduino IDE and librairies 
http://arduino.org/software

Arduino Web Editor & Cloud Platform
https://aws.amazon.com/blogs/aws/
arduino-web-editor-and-cloud-platform-
powered-by-aws/ 

Tip: ArduinoJson, a JSON library for
embedded systems
https://github.com/bblanchon/ArduinoJson
Arduino: connecting to AWS IoT
aws_iot_mqtt_client myClient;
if((rc = myClient.setup(AWS_IOT_CLIENT_ID)) == 0) {
// Load user configuration
if((rc = myClient.config(AWS_IOT_MQTT_HOST,
AWS_IOT_MQTT_PORT, AWS_IOT_ROOT_CA_PATH,
AWS_IOT_PRIVATE_KEY_PATH, AWS_IOT_CERTIFICATE_PATH)) == 0) {
if((rc = myClient.connect()) == 0) {
// We are connected
doSomethingUseful();
}
}
}
Arduino: subscribing and publishing to a topic
if ((rc=myClient.subscribe(”myTopic", 1, msg_callback)) != 0)
{
Serial.println("Subscribe failed!");
Serial.println(rc);
}
if((rc = myClient.publish(”myTopic", msg, strlen(msg),
1, false)) != 0)
{
Serial.println("Publish failed!");
Serial.println(rc);
}
Now what?
Now it’s your turn!
Whitepaper: “Core Tenets of IoT” "
https://d0.awsstatic.com/whitepapers/core-tenets-of-iot1.pdf
Whitepaper: “Big Data Analytics Options on AWS”
http://d0.awsstatic.com/whitepapers/Big_Data_Analytics_Options_on_AWS.pdf 

Learn more about AWS IoT https://aws.amazon.com/iot/
Learn about the AWS Free Tier https://aws.amazon.com/free/
Get started! https://aws.amazon.com/getting-started/ 

Next AWS events in France https://aws.amazon.com/fr/events/ 
•  AWSome Day in Lille 22/11 https://aws.amazon.com/fr/awsomeday/lille/ 
•  Security Week: 10 webinars (19-23/12) https://aws.amazon.com/fr/events/security-week/
Thank You !
Julien Simon
Principal Technical Evangelist
Amazon Web Services

julsimon@amazon.fr
@julsimon

More Related Content

PDF
Running Docker clusters on AWS (November 2016)
PDF
Running Open Source Platforms on AWS (November 2016)
PDF
AWS re:Invent 2016 recap (part 1)
PDF
Deep Dive on Amazon Relational Database Service (November 2016)
PDF
A 60-minute tour of AWS Compute (November 2016)
PDF
Deep Dive: Amazon Relational Database Service (March 2017)
PDF
The AWS DevOps combo (January 2017)
PDF
Building Serverless APIs on AWS
Running Docker clusters on AWS (November 2016)
Running Open Source Platforms on AWS (November 2016)
AWS re:Invent 2016 recap (part 1)
Deep Dive on Amazon Relational Database Service (November 2016)
A 60-minute tour of AWS Compute (November 2016)
Deep Dive: Amazon Relational Database Service (March 2017)
The AWS DevOps combo (January 2017)
Building Serverless APIs on AWS

Viewers also liked (20)

PDF
センサーデバイスのデータを使った Microsoft Azure Machine Learning 実装入門
PDF
IoT Implementation of Sensor Data Acquisition in Surveillance Applications - ...
PPTX
Windows 10 IoT Core on Raspberry Pi 2 Usine IO
DOCX
What is Web-Scale IT ?
PDF
How to bootstrap your IoT project
PPTX
Building your own RC Car with Raspberry Pi
PPTX
Raspbeery PI IoT
PPTX
Internet of things
PPTX
Internet of things
PDF
IoT Implementation of Sensor Data Acquisition in Surveillance Applications - ...
PDF
Hands-on with AWS IoT (November 2016)
PDF
Making Open Source Hardware IoT with Raspberry Pi
PPTX
NTK 2015: Internet of things track (IoT) - Smart Home
PPTX
Introduction to Internet of Things Hardware
PPTX
Windows 10 IoT-Core to Azure IoT Suite
PPTX
IoT implementation and Challenges
PDF
IoT sensor devices
PDF
IoT Architecture - Are Traditional Architectures Good Enough or do we Need Ne...
PPTX
Azure iot
PDF
Introduction to Windows IoT via Raspberry Pi 3
センサーデバイスのデータを使った Microsoft Azure Machine Learning 実装入門
IoT Implementation of Sensor Data Acquisition in Surveillance Applications - ...
Windows 10 IoT Core on Raspberry Pi 2 Usine IO
What is Web-Scale IT ?
How to bootstrap your IoT project
Building your own RC Car with Raspberry Pi
Raspbeery PI IoT
Internet of things
Internet of things
IoT Implementation of Sensor Data Acquisition in Surveillance Applications - ...
Hands-on with AWS IoT (November 2016)
Making Open Source Hardware IoT with Raspberry Pi
NTK 2015: Internet of things track (IoT) - Smart Home
Introduction to Internet of Things Hardware
Windows 10 IoT-Core to Azure IoT Suite
IoT implementation and Challenges
IoT sensor devices
IoT Architecture - Are Traditional Architectures Good Enough or do we Need Ne...
Azure iot
Introduction to Windows IoT via Raspberry Pi 3
Ad

Similar to An Overview of AWS IoT (November 2016) (20)

PDF
Hands-on with AWS IoT
PDF
Connecting the Unconnected: IoT Made Simple
PDF
Workshop AWS IoT @ IoT World Paris
PPTX
IoT Smart Home
PDF
AWS IoT 및 Mobile Hub 서비스 소개 (김일호) :: re:Invent re:Cap Webinar 2015
PDF
Workshop AWS IoT @ SIDO
PDF
An Introduction to AWS IoT - Web Summit Lisbon
PDF
Intro to AWS IoT - Pop-up Loft London
PPTX
Web + AWS + IoT, how to
PDF
AWS Innovate: Building an Internet Connected Camera with AWS IoT- Tim Cruse
PDF
AWS NYC Meetup - May 2017 - "AWS IoT and Greengrass"
PDF
UNIT V.pdf
PDF
EE5111 a0195042 j_iot_project_report_update
PPTX
Unit 6.pptx
PPTX
Gustavo Zastrow - Introduction to AWS IoT Core and MQTT
PDF
Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT W...
PDF
An Intro to AWS IoT
PPTX
Reply Bootcamp Rome - Mastering AWS - IoT Bootcamp
PDF
PDF
IoT and Serverless - AWS - Serverless Summit - Madhusudan Shekar
Hands-on with AWS IoT
Connecting the Unconnected: IoT Made Simple
Workshop AWS IoT @ IoT World Paris
IoT Smart Home
AWS IoT 및 Mobile Hub 서비스 소개 (김일호) :: re:Invent re:Cap Webinar 2015
Workshop AWS IoT @ SIDO
An Introduction to AWS IoT - Web Summit Lisbon
Intro to AWS IoT - Pop-up Loft London
Web + AWS + IoT, how to
AWS Innovate: Building an Internet Connected Camera with AWS IoT- Tim Cruse
AWS NYC Meetup - May 2017 - "AWS IoT and Greengrass"
UNIT V.pdf
EE5111 a0195042 j_iot_project_report_update
Unit 6.pptx
Gustavo Zastrow - Introduction to AWS IoT Core and MQTT
Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT W...
An Intro to AWS IoT
Reply Bootcamp Rome - Mastering AWS - IoT Bootcamp
IoT and Serverless - AWS - Serverless Summit - Madhusudan Shekar
Ad

More from Julien SIMON (20)

PDF
Implementing high-quality and cost-effiient AI applications with small langua...
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
PDF
Arcee AI - building and working with small language models (06/25)
PDF
deep_dive_multihead_latent_attention.pdf
PDF
Deep Dive: Model Distillation with DistillKit
PDF
Deep Dive: Parameter-Efficient Model Adaptation with LoRA and Spectrum
PDF
Building High-Quality Domain-Specific Models with Mergekit
PDF
Tailoring Small Language Models for Enterprise Use Cases
PDF
Tailoring Small Language Models for Enterprise Use Cases
PDF
Julien Simon - Deep Dive: Compiling Deep Learning Models
PDF
Tailoring Small Language Models for Enterprise Use Cases
PDF
Julien Simon - Deep Dive - Optimizing LLM Inference
PDF
Julien Simon - Deep Dive - Accelerating Models with Better Attention Layers
PDF
Julien Simon - Deep Dive - Quantizing LLMs
PDF
Julien Simon - Deep Dive - Model Merging
PDF
An introduction to computer vision with Hugging Face
PDF
Reinventing Deep Learning
 with Hugging Face Transformers
PDF
Building NLP applications with Transformers
PPTX
Building Machine Learning Models Automatically (June 2020)
Implementing high-quality and cost-effiient AI applications with small langua...
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Trying to figure out MCP by actually building an app from scratch with open s...
Arcee AI - building and working with small language models (06/25)
deep_dive_multihead_latent_attention.pdf
Deep Dive: Model Distillation with DistillKit
Deep Dive: Parameter-Efficient Model Adaptation with LoRA and Spectrum
Building High-Quality Domain-Specific Models with Mergekit
Tailoring Small Language Models for Enterprise Use Cases
Tailoring Small Language Models for Enterprise Use Cases
Julien Simon - Deep Dive: Compiling Deep Learning Models
Tailoring Small Language Models for Enterprise Use Cases
Julien Simon - Deep Dive - Optimizing LLM Inference
Julien Simon - Deep Dive - Accelerating Models with Better Attention Layers
Julien Simon - Deep Dive - Quantizing LLMs
Julien Simon - Deep Dive - Model Merging
An introduction to computer vision with Hugging Face
Reinventing Deep Learning
 with Hugging Face Transformers
Building NLP applications with Transformers
Building Machine Learning Models Automatically (June 2020)

Recently uploaded (20)

PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Approach and Philosophy of On baking technology
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
KodekX | Application Modernization Development
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
Cloud computing and distributed systems.
PDF
Modernizing your data center with Dell and AMD
PDF
Electronic commerce courselecture one. Pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Reach Out and Touch Someone: Haptics and Empathic Computing
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Review of recent advances in non-invasive hemoglobin estimation
Approach and Philosophy of On baking technology
20250228 LYD VKU AI Blended-Learning.pptx
Network Security Unit 5.pdf for BCA BBA.
Diabetes mellitus diagnosis method based random forest with bat algorithm
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
NewMind AI Weekly Chronicles - August'25 Week I
KodekX | Application Modernization Development
CIFDAQ's Market Insight: SEC Turns Pro Crypto
The AUB Centre for AI in Media Proposal.docx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Encapsulation_ Review paper, used for researhc scholars
Cloud computing and distributed systems.
Modernizing your data center with Dell and AMD
Electronic commerce courselecture one. Pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Bridging biosciences and deep learning for revolutionary discoveries: a compr...

An Overview of AWS IoT (November 2016)

  • 1. IoT on Amazon Web Services Julien Simon Principal Technical Evangelist Amazon Web Services julsimon@amazon.fr @julsimon 17/11/2016
  • 2. Agenda •  A simple definition of the Internet of Things •  IoT projects running on AWS •  The AWS IoT platform –  Devices & SDKs –  The MQTT protocol –  Moving IoT data to the cloud –  Demo on the Arduino Yùn platform •  Q&A
  • 5. DEPLOYED IN THE THOUSANDS, MAYBE THE MILLIONS
  • 6. ABLE TO RUN FOR YEARS" WITHOUT HUMAN INTERVENTION
  • 7. COLLECTING AND SENDING " STREAMS OF DATA 24/7/365" " and this is the real challenge in IoT !
  • 8. Millions of devices sending billions of messages Receivers Senders
  • 11. a = 2
  • 12. More on this later J
  • 15. Streaming, analysis, storage and visualization of data coming from 200,000 farming machines Precision agriculture and yield optimization for farmers New business model for John Deere https://www.youtube.com/watch?v=uq4kQPsM4cQ
  • 16. “Car as a Sensor” Collect sensor data from BMW 7 Series cars to give drivers dynamically updated map information 100,000 vehicles by 2018 Service launched " in 6 months https://aws.amazon.com/solutions/case-studies/bmw/
  • 17. Connected Roomba launched in 2015 More than 45 million square meters mapped Discovery and interaction with Smart Home devices https://aws.amazon.com/solutions/case-studies/irobot/
  • 18. More IoT applications based on AWS Thermomix Consumer equipment Soitec Semiconductors SPS Motors Siemens Power & Gas Energy production Veolia Water Water systems Amazon Retail
  • 20. The AWS IoT Platform
  • 21. AWS Global Infrastructure 14 Regions 38 Availability Zones 63 Edge Locations AWS IoT available
  • 22. 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 - - - - - 3rd party DEVICE SHADOW Persistent thing state during intermittent connections APPLICATIONS AWS IoT API DEVICE REGISTRY Identity and Management of your things
  • 23. Pricing •  No minimum fee •  You are only charged on the number of incoming and outgoing messages •  1 message = 512 bytes maximum •  Free tier: 250K free messages / month for 12 months •  No charge when delivering to Amazon S3, Amazon DynamoDB, AWS Lambda, Amazon Kinesis, Amazon SNS, and Amazon SQS.
  • 25. Official AWS IoT Starter Kits
  • 26. Software platforms supported by AWS IoT •  Arduino Yún https://github.com/aws/aws-iot-device-sdk-arduino-yun •  Javascript https://github.com/aws/aws-iot-device-sdk-js •  Embedded C https://github.com/aws/aws-iot-device-sdk-embedded-C •  Android https://github.com/aws/aws-sdk-android/ •  iOS https://github.com/awslabs/aws-sdk-ios-samples •  Java (07/16) https://github.com/aws/aws-iot-device-sdk-java •  Python (07/16) https://github.com/aws/aws-iot-device-sdk-python
  • 27. Managing things •  Thing Registry •  Secure Identity for Things: one certificate per thing (mandatory) •  Secure Communications with Things: one keypair per thing (mandatory) •  Fine-grained Authorization (based on Amazon IAM) –  Thing Management –  Access to messages –  Access to AWS services https://aws.amazon.com/security/ https://aws.amazon.com/compliance/ https://aws.amazon.com/compliance/eu-data-protection/
  • 28. AWS IoT: The MQTT Protocol
  • 29. Protocols supported by AWS IoT •  MQTT over HTTPS: publish and subscribe" (IPv4 and IPv6) •  MQTT over WebSockets: publish and subscribe –  Security is managed with AWS Signatures v4 •  HTTPS publish only
  • 30. MQTT Protocol MQTTS vs HTTPS:  93x faster throughput 11.89x less battery to send 170.9x less battery to receive 50% less power to stay connected 8x less network overhead Source: http://stephendnicholas.com/archives/1217 •  OASIS standard protocol (v3.1.1) •  Lightweight transport protocol that is useful for connected devices •  Publish-subscribe with topics •  MQTT is used on oil rigs, connected trucks, and many more critical applications •  Until now, customers had to build, maintain and scale a broker to use MQTT with cloud applications
  • 32. MQTT: collect data from a device mydevices/4 mydevices/4
  • 33. MQTT: aggregate data from many devices mydevices/# mydevices/1 mydevices/2 mydevices/3 …. Amazon " DynamoDB Applications
  • 34. MQTT: update a device mydevices/4 mydevices/4
  • 35. MQTT: QoS 0 (at most once)" 1 2 3 4 5 6 1,2,3,5,6 Publish QoS0
  • 36. MQTT: QoS 1 (at least once) 1 2 3 4 5 4 1,2,3,4,5,6 6 PUBLISH QoS1 PUBLISH QoS1 PUBACK
  • 38. AWS IoT: Moving data to the cloud
  • 39. Collect Store Analyze Consume A iOS Android Web Apps Logstash Amazon RDS Amazon DynamoDB Amazon ES Amazon
 S3 Apache Kafka Amazon
 Glacier Amazon
 Kinesis Amazon
 DynamoDB Amazon Redshift Impala Pig Amazon ML Streaming Amazon
 Kinesis AWS Lambda AmazonElasticMapReduce Amazon ElastiCache SearchSQLNoSQLCache StreamProcessing Batch Interactive Logging StreamStorage IoT Applications FileStorage Analysis&Visualization Hot Cold Warm Hot Slow Hot ML Fast Fast Amazon QuickSight Transactional Data File Data Stream Data Notebooks Predictions Apps & APIs Mobile Apps IDE Search Data ETL
  • 40. 1. AWS Services (Direct Integration) Rules Engine Actions AWS IoT Rules 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 connect AWS IoT to External Endpoints " and AWS Services 2. Rest of AWS" (via Amazon Kinesis, AWS Lambda, Amazon S3, and more) Amazon CloudWatch Amazon " Elasticsearch Amazon Machine " Learning
  • 41. AWS IoT Rules Engine Rule Name Description SQL Statement Array of Actions Simple & Familiar Syntax -  SQL Statement to define topic filter -  Optional WHERE clause -  Advanced JSON support Many functions available -  String manipulation (regex support) -  Mathematical operations -  Crypto support -  UUID, Timestamp, rand, etc.
  • 42. From AWS IoT to an External Endpoint Lambda Function AWS Services Execution Role Policy External Endpoint Permission Private Key & Certificate Thing/Device SDK Rules Engine Policy Rule AWS IoT Select * from ‘iotbutton/+’ Action
  • 46. Software Shopping List Arduino IDE and librairies http://arduino.org/software Arduino Web Editor & Cloud Platform https://aws.amazon.com/blogs/aws/ arduino-web-editor-and-cloud-platform- powered-by-aws/ Tip: ArduinoJson, a JSON library for embedded systems https://github.com/bblanchon/ArduinoJson
  • 47. Arduino: connecting to AWS IoT aws_iot_mqtt_client myClient; if((rc = myClient.setup(AWS_IOT_CLIENT_ID)) == 0) { // Load user configuration if((rc = myClient.config(AWS_IOT_MQTT_HOST, AWS_IOT_MQTT_PORT, AWS_IOT_ROOT_CA_PATH, AWS_IOT_PRIVATE_KEY_PATH, AWS_IOT_CERTIFICATE_PATH)) == 0) { if((rc = myClient.connect()) == 0) { // We are connected doSomethingUseful(); } } }
  • 48. Arduino: subscribing and publishing to a topic if ((rc=myClient.subscribe(”myTopic", 1, msg_callback)) != 0) { Serial.println("Subscribe failed!"); Serial.println(rc); } if((rc = myClient.publish(”myTopic", msg, strlen(msg), 1, false)) != 0) { Serial.println("Publish failed!"); Serial.println(rc); }
  • 50. Now it’s your turn! Whitepaper: “Core Tenets of IoT” " https://d0.awsstatic.com/whitepapers/core-tenets-of-iot1.pdf Whitepaper: “Big Data Analytics Options on AWS” http://d0.awsstatic.com/whitepapers/Big_Data_Analytics_Options_on_AWS.pdf Learn more about AWS IoT https://aws.amazon.com/iot/ Learn about the AWS Free Tier https://aws.amazon.com/free/ Get started! https://aws.amazon.com/getting-started/ Next AWS events in France https://aws.amazon.com/fr/events/ •  AWSome Day in Lille 22/11 https://aws.amazon.com/fr/awsomeday/lille/ •  Security Week: 10 webinars (19-23/12) https://aws.amazon.com/fr/events/security-week/
  • 51. Thank You ! Julien Simon Principal Technical Evangelist Amazon Web Services julsimon@amazon.fr @julsimon