SlideShare ist ein Scribd-Unternehmen logo
1 von 34
Downloaden Sie, um offline zu lesen
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS IoT Core Workshop
Chris Snowden
Sr. Technical Account Manager
AWS/Enterprise Support
I O T 3 0 5
Max Jindal
Sr. Software Dev. Engineer
AWS/IoT Core
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
“Outside of a dog, a book is man’s best
friend. Inside of a dog it’s too dark to
read.”
Groucho Marx
Comedian, Philosopher
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agenda
1. AWS IoT Core review
2. Device shadow focus
3. Rules engine focus
4. New feature – Basic Ingest
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS IoT Core
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Authentication
and
authorization
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Device
gateway
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
MQTT
home/ac/AAA/temperat
ure
home/ac/BBB/temperat
ure
home/ac/CCC/temperat
ure
home/ac/DDD/temperature
Device:
AAA
Device:
BBB
Device:
CCC
Device:
DDD
• Based on MQTT 3.1.1
with some deviation
• QoS 0 and 1
• Unique ClientID
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Message
broker
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Device
shadow
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS IoT shadow update example
IoT
device
AWS IoT Delta topic
+ =
{
“state”: {
“desired”: {
“led1”: “blue”,
“tempInF”: 60
}
}
}
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
{
“state”: {
“reported”: {
“led1”: “red”,
“tempInF”: 85
},
“desired”: {
“led1”: “blue”,
“tempInF”: 60
}
}
}
AWS IoT shadow update example
IoT
device
AWS IoT Delta topic
{
“state”: {
“reported”: {
“led1”: “red”,
“tempInF”: 85
}
}
}
{
“state”: {
“delta”: {
“led1”: “blue”,
“tempInF”: 60
}
}
}
+ =
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
{
“state”: {
“reported”: {
“led1”: “blue”,
“tempInF”: 85
},
“desired”: {
“led1”: “blue”,
“tempInF”: 60
}
}
}
{
“state”: {
“reported”: {
“led1”: “blue”,
“tempInF”: 85
}
}
}
AWS IoT shadow update example
IoT
device
AWS IoT Delta topic
+ =
{
“state”: {
“delta”: {
“tempInF”: 60
}
}
}
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
{
“state”: {
“reported”: {
“tempInF”: 60
},
“desired”: {
“tempInF”: 60
}
}
}
AWS IoT shadow update example
IoT
device
AWS IoT Delta topic
{
“state”: {
“reported”: {
“tempInF”: 60
}
}
}
=+ No message sent
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS IoT device shadow topics (MQTT)
Update:
$aws/things/{thingName}/shadow/update
Delta:
$aws/things/{thingName}/shadow/update/delta
Get:
$aws/things/{thingName}/shadow/get
Delete:
$aws/things/{thingName}/shadow/delete
Documents:
$aws/things/{thingName}/shadow/update/documents
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Rules
engine
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Rules engine
Connects IoT to outside world
Transform message content
Enrich messages with contextual data
Filter erroneous or unnecessary messages
Route based on content
Decouples device software and cloud applications
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Example—Sending event to AWS services
Payload:
{
"temp": 33,
"wind": 1.02
}
MQTT topic:
pws/station123
"context":
{...},
"event":
{
"temp": 33,
"wind": 1.02,
"timestamp":
1000209900
}
Lambda
function
"deliveryStreamName":
{...},
"msgNNN":
{
"temp": 33,
"wind": 1.02,
"timestamp":
1000209900
}
Amazon
Kinesis
Firehose
Rule configured
on the topic
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Anatomy of a rule
SELECT newuuid() as eventId, topic(2) as deviceId,
rate as flowrate, ts
FROM telemetry/+/flow/v2
WHERE flowrate > 0
Action: Kinesis, partitionKey “${topic(2)}”
Transform SELECT
Input FROM
Filter WHERE
Route Action
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Anatomy of a rule
SELECT newuuid() as eventId, topic(2) as deviceId,
rate as flowrate, ts
FROM telemetry/+/flow/v2
WHERE flowrate > 0
Action: Kinesis, partitionKey “${topic(2)}”
Transform SELECT
Input FROM
Filter WHERE
Route Action
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Anatomy of a rule
SELECT newuuid() as eventId, topic(2) as deviceId,
rate as flowrate, ts
FROM telemetry/+/flow/v2
WHERE flowrate > 0
Action: Kinesis, partitionKey “${topic(2)}”
Transform SELECT
Input FROM
Filter WHERE
Route Action
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Anatomy of a rule
SELECT newuuid() as eventId, topic(2) as deviceId,
rate as flowrate, ts
FROM telemetry/+/flow/v2
WHERE flowrate > 0
Action: Kinesis, partitionKey “${topic(2)}”
Transform SELECT
Input FROM
Filter WHERE
Route Action
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Anatomy of a rule
SELECT newuuid() as eventId, topic(2) as deviceId,
rate as flowrate, ts
FROM telemetry/+/flow/v2
WHERE flowrate > 0
Action: Kinesis, partitionKey “${topic(2)}”
Transform SELECT
Input FROM
Filter WHERE
Route Action
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Understanding action components
Service unique parameters
For example, Amazon Simple Storage Service (Amazon S3) bucket and
key; Amazon Kinesis Data stream and partition key
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS IoT SQL example 1
• Select all /pump_status messages from factory/
• Use Amazon Machine Learning (Amazon ML) model vibration-
model, if the output is 1 process action
• Action: Republish to topic: factory/maint_required
SELECT * FROM 'factory/+/pump_status’
WHERE machinelearning_predict( 'vibration-model',
'arn:aws:iam::123456789012:role/my-iot-aml-role',
*).predictedLabel=1
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS IoT SQL example 2
Incoming payload:
{
"sensor":
{
"temp": 78.2,
"humid": 42.5
},
"bat_stat": "ok"
}
Action: Send to Amazon Elasticsearch Service indexed on timestamp key/value
SELECT (sensor.temp – 32) * 5/9 as celsius,
sensor.humid as humid, upper(bat_stat) as
battery, timestamp() as timestamp
FROM 'a/b'
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
New feature—AWS IoT Basic Ingest
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Regular message flow
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Basic Ingest message flow
Basic Ingest
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
New feature—AWS IoT Basic Ingest
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Any questions?
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Workshop hands-on activity guide
1. Device provisioning
2. Setting up Amazon Simple Notification Service (Amazon
SNS) topic
3. Setting up rules
4. Connecting to AWS IoT Core
5. Updating device shadow
6. Publishing telemetry data to Basic Ingest
Use AWS Region – us-west-2
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Thank you!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Chris Snowden
Max Jindal
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Weitere ähnliche Inhalte

Was ist angesagt?

Deploy Serverless Apps with Python: AWS Chalice Deep Dive (DEV427-R2) - AWS r...
Deploy Serverless Apps with Python: AWS Chalice Deep Dive (DEV427-R2) - AWS r...Deploy Serverless Apps with Python: AWS Chalice Deep Dive (DEV427-R2) - AWS r...
Deploy Serverless Apps with Python: AWS Chalice Deep Dive (DEV427-R2) - AWS r...Amazon Web Services
 
Serverless Stream Processing Pipeline Best Practices (SRV316-R1) - AWS re:Inv...
Serverless Stream Processing Pipeline Best Practices (SRV316-R1) - AWS re:Inv...Serverless Stream Processing Pipeline Best Practices (SRV316-R1) - AWS re:Inv...
Serverless Stream Processing Pipeline Best Practices (SRV316-R1) - AWS re:Inv...Amazon Web Services
 
[NEW LAUNCH!] Introducing AWS App Mesh – service mesh on AWS (CON367) - AWS r...
[NEW LAUNCH!] Introducing AWS App Mesh – service mesh on AWS (CON367) - AWS r...[NEW LAUNCH!] Introducing AWS App Mesh – service mesh on AWS (CON367) - AWS r...
[NEW LAUNCH!] Introducing AWS App Mesh – service mesh on AWS (CON367) - AWS r...Amazon Web Services
 
Save up to 90% on Big Data and Machine Learning Workloads with Spot Instances...
Save up to 90% on Big Data and Machine Learning Workloads with Spot Instances...Save up to 90% on Big Data and Machine Learning Workloads with Spot Instances...
Save up to 90% on Big Data and Machine Learning Workloads with Spot Instances...Amazon Web Services
 
NFL and Forwood Safety Deploy Business Analytics at Scale with Amazon QuickSi...
NFL and Forwood Safety Deploy Business Analytics at Scale with Amazon QuickSi...NFL and Forwood Safety Deploy Business Analytics at Scale with Amazon QuickSi...
NFL and Forwood Safety Deploy Business Analytics at Scale with Amazon QuickSi...Amazon Web Services
 
Operationalizing Your Analysis with AWS IoT Analytics (IOT358-R1) - AWS re:In...
Operationalizing Your Analysis with AWS IoT Analytics (IOT358-R1) - AWS re:In...Operationalizing Your Analysis with AWS IoT Analytics (IOT358-R1) - AWS re:In...
Operationalizing Your Analysis with AWS IoT Analytics (IOT358-R1) - AWS re:In...Amazon Web Services
 
Serverless State Management & Orchestration for Modern Apps (API302) - AWS re...
Serverless State Management & Orchestration for Modern Apps (API302) - AWS re...Serverless State Management & Orchestration for Modern Apps (API302) - AWS re...
Serverless State Management & Orchestration for Modern Apps (API302) - AWS re...Amazon Web Services
 
Computing at the Edge with AWS Greengrass and Amazon FreeRTOS, ft. General El...
Computing at the Edge with AWS Greengrass and Amazon FreeRTOS, ft. General El...Computing at the Edge with AWS Greengrass and Amazon FreeRTOS, ft. General El...
Computing at the Edge with AWS Greengrass and Amazon FreeRTOS, ft. General El...Amazon Web Services
 
How Avatars & AR Are Driving Innovation: Lessons from Electronic Caregiver (A...
How Avatars & AR Are Driving Innovation: Lessons from Electronic Caregiver (A...How Avatars & AR Are Driving Innovation: Lessons from Electronic Caregiver (A...
How Avatars & AR Are Driving Innovation: Lessons from Electronic Caregiver (A...Amazon Web Services
 
Serverless:It All Started in Vegas (DVC306) - AWS re:Invent 2018
Serverless:It All Started in Vegas (DVC306) - AWS re:Invent 2018Serverless:It All Started in Vegas (DVC306) - AWS re:Invent 2018
Serverless:It All Started in Vegas (DVC306) - AWS re:Invent 2018Amazon Web Services
 
Automate & Audit Cloud Governance & Compliance in Your Landing Zone (ENT315-R...
Automate & Audit Cloud Governance & Compliance in Your Landing Zone (ENT315-R...Automate & Audit Cloud Governance & Compliance in Your Landing Zone (ENT315-R...
Automate & Audit Cloud Governance & Compliance in Your Landing Zone (ENT315-R...Amazon Web Services
 
How Cox Automotive Runs GitHub Enterprise on AWS (ENT356-S) - AWS re:Invent 2018
How Cox Automotive Runs GitHub Enterprise on AWS (ENT356-S) - AWS re:Invent 2018How Cox Automotive Runs GitHub Enterprise on AWS (ENT356-S) - AWS re:Invent 2018
How Cox Automotive Runs GitHub Enterprise on AWS (ENT356-S) - AWS re:Invent 2018Amazon Web Services
 
High Velocity DevOps: Four Ways to Leverage CloudFront in Faster DevOps Workf...
High Velocity DevOps: Four Ways to Leverage CloudFront in Faster DevOps Workf...High Velocity DevOps: Four Ways to Leverage CloudFront in Faster DevOps Workf...
High Velocity DevOps: Four Ways to Leverage CloudFront in Faster DevOps Workf...Amazon Web Services
 
Designing for Operability: Getting the Last Nines in Five-Nines Availability ...
Designing for Operability: Getting the Last Nines in Five-Nines Availability ...Designing for Operability: Getting the Last Nines in Five-Nines Availability ...
Designing for Operability: Getting the Last Nines in Five-Nines Availability ...Amazon Web Services
 
Announcing AWS RoboMaker: A New Cloud Robotics Service (ROB201-R1) - AWS re:I...
Announcing AWS RoboMaker: A New Cloud Robotics Service (ROB201-R1) - AWS re:I...Announcing AWS RoboMaker: A New Cloud Robotics Service (ROB201-R1) - AWS re:I...
Announcing AWS RoboMaker: A New Cloud Robotics Service (ROB201-R1) - AWS re:I...Amazon Web Services
 
Move Data to AWS Faster for Migrations, DR, & Bidirectional Workflows (STG382...
Move Data to AWS Faster for Migrations, DR, & Bidirectional Workflows (STG382...Move Data to AWS Faster for Migrations, DR, & Bidirectional Workflows (STG382...
Move Data to AWS Faster for Migrations, DR, & Bidirectional Workflows (STG382...Amazon Web Services
 
The New Normal for Mission-Critical SAP Workloads (ENT219-R1) - AWS re:Invent...
The New Normal for Mission-Critical SAP Workloads (ENT219-R1) - AWS re:Invent...The New Normal for Mission-Critical SAP Workloads (ENT219-R1) - AWS re:Invent...
The New Normal for Mission-Critical SAP Workloads (ENT219-R1) - AWS re:Invent...Amazon Web Services
 
Foundations of AWS Global Cloud Infrastructure (ARC217) - AWS re:Invent 2018
Foundations of AWS Global Cloud Infrastructure (ARC217) - AWS re:Invent 2018Foundations of AWS Global Cloud Infrastructure (ARC217) - AWS re:Invent 2018
Foundations of AWS Global Cloud Infrastructure (ARC217) - AWS re:Invent 2018Amazon Web Services
 
High Performance Computing on AWS: Driving Innovation without Infrastructure ...
High Performance Computing on AWS: Driving Innovation without Infrastructure ...High Performance Computing on AWS: Driving Innovation without Infrastructure ...
High Performance Computing on AWS: Driving Innovation without Infrastructure ...Amazon Web Services
 
Making Hybrid Work for You: Getting into the Cloud Fast (GPSTEC308) - AWS re:...
Making Hybrid Work for You: Getting into the Cloud Fast (GPSTEC308) - AWS re:...Making Hybrid Work for You: Getting into the Cloud Fast (GPSTEC308) - AWS re:...
Making Hybrid Work for You: Getting into the Cloud Fast (GPSTEC308) - AWS re:...Amazon Web Services
 

Was ist angesagt? (20)

Deploy Serverless Apps with Python: AWS Chalice Deep Dive (DEV427-R2) - AWS r...
Deploy Serverless Apps with Python: AWS Chalice Deep Dive (DEV427-R2) - AWS r...Deploy Serverless Apps with Python: AWS Chalice Deep Dive (DEV427-R2) - AWS r...
Deploy Serverless Apps with Python: AWS Chalice Deep Dive (DEV427-R2) - AWS r...
 
Serverless Stream Processing Pipeline Best Practices (SRV316-R1) - AWS re:Inv...
Serverless Stream Processing Pipeline Best Practices (SRV316-R1) - AWS re:Inv...Serverless Stream Processing Pipeline Best Practices (SRV316-R1) - AWS re:Inv...
Serverless Stream Processing Pipeline Best Practices (SRV316-R1) - AWS re:Inv...
 
[NEW LAUNCH!] Introducing AWS App Mesh – service mesh on AWS (CON367) - AWS r...
[NEW LAUNCH!] Introducing AWS App Mesh – service mesh on AWS (CON367) - AWS r...[NEW LAUNCH!] Introducing AWS App Mesh – service mesh on AWS (CON367) - AWS r...
[NEW LAUNCH!] Introducing AWS App Mesh – service mesh on AWS (CON367) - AWS r...
 
Save up to 90% on Big Data and Machine Learning Workloads with Spot Instances...
Save up to 90% on Big Data and Machine Learning Workloads with Spot Instances...Save up to 90% on Big Data and Machine Learning Workloads with Spot Instances...
Save up to 90% on Big Data and Machine Learning Workloads with Spot Instances...
 
NFL and Forwood Safety Deploy Business Analytics at Scale with Amazon QuickSi...
NFL and Forwood Safety Deploy Business Analytics at Scale with Amazon QuickSi...NFL and Forwood Safety Deploy Business Analytics at Scale with Amazon QuickSi...
NFL and Forwood Safety Deploy Business Analytics at Scale with Amazon QuickSi...
 
Operationalizing Your Analysis with AWS IoT Analytics (IOT358-R1) - AWS re:In...
Operationalizing Your Analysis with AWS IoT Analytics (IOT358-R1) - AWS re:In...Operationalizing Your Analysis with AWS IoT Analytics (IOT358-R1) - AWS re:In...
Operationalizing Your Analysis with AWS IoT Analytics (IOT358-R1) - AWS re:In...
 
Serverless State Management & Orchestration for Modern Apps (API302) - AWS re...
Serverless State Management & Orchestration for Modern Apps (API302) - AWS re...Serverless State Management & Orchestration for Modern Apps (API302) - AWS re...
Serverless State Management & Orchestration for Modern Apps (API302) - AWS re...
 
Computing at the Edge with AWS Greengrass and Amazon FreeRTOS, ft. General El...
Computing at the Edge with AWS Greengrass and Amazon FreeRTOS, ft. General El...Computing at the Edge with AWS Greengrass and Amazon FreeRTOS, ft. General El...
Computing at the Edge with AWS Greengrass and Amazon FreeRTOS, ft. General El...
 
How Avatars & AR Are Driving Innovation: Lessons from Electronic Caregiver (A...
How Avatars & AR Are Driving Innovation: Lessons from Electronic Caregiver (A...How Avatars & AR Are Driving Innovation: Lessons from Electronic Caregiver (A...
How Avatars & AR Are Driving Innovation: Lessons from Electronic Caregiver (A...
 
Serverless:It All Started in Vegas (DVC306) - AWS re:Invent 2018
Serverless:It All Started in Vegas (DVC306) - AWS re:Invent 2018Serverless:It All Started in Vegas (DVC306) - AWS re:Invent 2018
Serverless:It All Started in Vegas (DVC306) - AWS re:Invent 2018
 
Automate & Audit Cloud Governance & Compliance in Your Landing Zone (ENT315-R...
Automate & Audit Cloud Governance & Compliance in Your Landing Zone (ENT315-R...Automate & Audit Cloud Governance & Compliance in Your Landing Zone (ENT315-R...
Automate & Audit Cloud Governance & Compliance in Your Landing Zone (ENT315-R...
 
How Cox Automotive Runs GitHub Enterprise on AWS (ENT356-S) - AWS re:Invent 2018
How Cox Automotive Runs GitHub Enterprise on AWS (ENT356-S) - AWS re:Invent 2018How Cox Automotive Runs GitHub Enterprise on AWS (ENT356-S) - AWS re:Invent 2018
How Cox Automotive Runs GitHub Enterprise on AWS (ENT356-S) - AWS re:Invent 2018
 
High Velocity DevOps: Four Ways to Leverage CloudFront in Faster DevOps Workf...
High Velocity DevOps: Four Ways to Leverage CloudFront in Faster DevOps Workf...High Velocity DevOps: Four Ways to Leverage CloudFront in Faster DevOps Workf...
High Velocity DevOps: Four Ways to Leverage CloudFront in Faster DevOps Workf...
 
Designing for Operability: Getting the Last Nines in Five-Nines Availability ...
Designing for Operability: Getting the Last Nines in Five-Nines Availability ...Designing for Operability: Getting the Last Nines in Five-Nines Availability ...
Designing for Operability: Getting the Last Nines in Five-Nines Availability ...
 
Announcing AWS RoboMaker: A New Cloud Robotics Service (ROB201-R1) - AWS re:I...
Announcing AWS RoboMaker: A New Cloud Robotics Service (ROB201-R1) - AWS re:I...Announcing AWS RoboMaker: A New Cloud Robotics Service (ROB201-R1) - AWS re:I...
Announcing AWS RoboMaker: A New Cloud Robotics Service (ROB201-R1) - AWS re:I...
 
Move Data to AWS Faster for Migrations, DR, & Bidirectional Workflows (STG382...
Move Data to AWS Faster for Migrations, DR, & Bidirectional Workflows (STG382...Move Data to AWS Faster for Migrations, DR, & Bidirectional Workflows (STG382...
Move Data to AWS Faster for Migrations, DR, & Bidirectional Workflows (STG382...
 
The New Normal for Mission-Critical SAP Workloads (ENT219-R1) - AWS re:Invent...
The New Normal for Mission-Critical SAP Workloads (ENT219-R1) - AWS re:Invent...The New Normal for Mission-Critical SAP Workloads (ENT219-R1) - AWS re:Invent...
The New Normal for Mission-Critical SAP Workloads (ENT219-R1) - AWS re:Invent...
 
Foundations of AWS Global Cloud Infrastructure (ARC217) - AWS re:Invent 2018
Foundations of AWS Global Cloud Infrastructure (ARC217) - AWS re:Invent 2018Foundations of AWS Global Cloud Infrastructure (ARC217) - AWS re:Invent 2018
Foundations of AWS Global Cloud Infrastructure (ARC217) - AWS re:Invent 2018
 
High Performance Computing on AWS: Driving Innovation without Infrastructure ...
High Performance Computing on AWS: Driving Innovation without Infrastructure ...High Performance Computing on AWS: Driving Innovation without Infrastructure ...
High Performance Computing on AWS: Driving Innovation without Infrastructure ...
 
Making Hybrid Work for You: Getting into the Cloud Fast (GPSTEC308) - AWS re:...
Making Hybrid Work for You: Getting into the Cloud Fast (GPSTEC308) - AWS re:...Making Hybrid Work for You: Getting into the Cloud Fast (GPSTEC308) - AWS re:...
Making Hybrid Work for You: Getting into the Cloud Fast (GPSTEC308) - AWS re:...
 

Ähnlich wie AWS IoT Core Workshop (IOT305-R1) - AWS re:Invent 2018

IOT203_Getting Started with AWS IoT
IOT203_Getting Started with AWS IoTIOT203_Getting Started with AWS IoT
IOT203_Getting Started with AWS IoTAmazon Web Services
 
Getting Started with AWS IoT - IOT203 - re:Invent 2017
Getting Started with AWS IoT - IOT203 - re:Invent 2017Getting Started with AWS IoT - IOT203 - re:Invent 2017
Getting Started with AWS IoT - IOT203 - re:Invent 2017Amazon Web Services
 
The Essentials of AWS IoT Device Management (IOT326-R1) - AWS re:Invent 2018
The Essentials of AWS IoT Device Management (IOT326-R1) - AWS re:Invent 2018The Essentials of AWS IoT Device Management (IOT326-R1) - AWS re:Invent 2018
The Essentials of AWS IoT Device Management (IOT326-R1) - AWS re:Invent 2018Amazon Web Services
 
IoT Building Blocks From Edge Devices to Analytics in the Cloud
IoT Building Blocks From Edge Devices to Analytics in the CloudIoT Building Blocks From Edge Devices to Analytics in the Cloud
IoT Building Blocks From Edge Devices to Analytics in the CloudAmazon Web Services
 
Getting started with AWS IoT Core - SVC306 - New York AWS Summit
Getting started with AWS IoT Core - SVC306 - New York AWS SummitGetting started with AWS IoT Core - SVC306 - New York AWS Summit
Getting started with AWS IoT Core - SVC306 - New York AWS SummitAmazon Web Services
 
Running Serverless at The Edge (CTD302) - AWS re:Invent 2018
Running Serverless at The Edge (CTD302) - AWS re:Invent 2018Running Serverless at The Edge (CTD302) - AWS re:Invent 2018
Running Serverless at The Edge (CTD302) - AWS re:Invent 2018Amazon Web Services
 
Best Practices for Scalable Monitoring (ENT310-S) - AWS re:Invent 2018
Best Practices for Scalable Monitoring (ENT310-S) - AWS re:Invent 2018Best Practices for Scalable Monitoring (ENT310-S) - AWS re:Invent 2018
Best Practices for Scalable Monitoring (ENT310-S) - AWS re:Invent 2018Amazon Web Services
 
Best Practices for AWS IoT Core (IOT347-R1) - AWS re:Invent 2018
Best Practices for AWS IoT Core (IOT347-R1) - AWS re:Invent 2018Best Practices for AWS IoT Core (IOT347-R1) - AWS re:Invent 2018
Best Practices for AWS IoT Core (IOT347-R1) - AWS re:Invent 2018Amazon Web Services
 
How Zocdoc Achieves Automatic Threat Detection & Remediation with Security as...
How Zocdoc Achieves Automatic Threat Detection & Remediation with Security as...How Zocdoc Achieves Automatic Threat Detection & Remediation with Security as...
How Zocdoc Achieves Automatic Threat Detection & Remediation with Security as...Amazon Web Services
 
Building Fraud Detection Systems with AWS Batch and Containers (DVC301) - AWS...
Building Fraud Detection Systems with AWS Batch and Containers (DVC301) - AWS...Building Fraud Detection Systems with AWS Batch and Containers (DVC301) - AWS...
Building Fraud Detection Systems with AWS Batch and Containers (DVC301) - AWS...Amazon Web Services
 
Building Serverless Applications Using AWS AppSync and Amazon Neptune (SRV307...
Building Serverless Applications Using AWS AppSync and Amazon Neptune (SRV307...Building Serverless Applications Using AWS AppSync and Amazon Neptune (SRV307...
Building Serverless Applications Using AWS AppSync and Amazon Neptune (SRV307...Amazon Web Services
 
Developing Well-Architected Android Apps with AWS (MOB302) - AWS re:Invent 2018
Developing Well-Architected Android Apps with AWS (MOB302) - AWS re:Invent 2018Developing Well-Architected Android Apps with AWS (MOB302) - AWS re:Invent 2018
Developing Well-Architected Android Apps with AWS (MOB302) - AWS re:Invent 2018Amazon Web Services
 
Analyzing Streaming Data in Real-time - AWS Summit Cape Town 2018
Analyzing Streaming Data in Real-time - AWS Summit Cape Town 2018Analyzing Streaming Data in Real-time - AWS Summit Cape Town 2018
Analyzing Streaming Data in Real-time - AWS Summit Cape Town 2018Amazon Web Services
 
Black Belt Tips for IT Operations - AWS Summit Sydney 2018
Black Belt Tips for IT Operations - AWS Summit Sydney 2018Black Belt Tips for IT Operations - AWS Summit Sydney 2018
Black Belt Tips for IT Operations - AWS Summit Sydney 2018Amazon Web Services
 
AWS IoT in the Connected Home - AWS Online Tech Talks
AWS IoT in the Connected Home - AWS Online Tech TalksAWS IoT in the Connected Home - AWS Online Tech Talks
AWS IoT in the Connected Home - AWS Online Tech TalksAmazon Web Services
 
Day Two Operations of Kubernetes on AWS (GPSTEC309) - AWS re:Invent 2018
Day Two Operations of Kubernetes on AWS (GPSTEC309) - AWS re:Invent 2018Day Two Operations of Kubernetes on AWS (GPSTEC309) - AWS re:Invent 2018
Day Two Operations of Kubernetes on AWS (GPSTEC309) - AWS re:Invent 2018Amazon Web Services
 
Manage IoT Devices throughout Their Lifecycle - AWS Online Tech Talks
Manage IoT Devices throughout Their Lifecycle - AWS Online Tech TalksManage IoT Devices throughout Their Lifecycle - AWS Online Tech Talks
Manage IoT Devices throughout Their Lifecycle - AWS Online Tech TalksAmazon Web Services
 

Ähnlich wie AWS IoT Core Workshop (IOT305-R1) - AWS re:Invent 2018 (20)

IOT203_Getting Started with AWS IoT
IOT203_Getting Started with AWS IoTIOT203_Getting Started with AWS IoT
IOT203_Getting Started with AWS IoT
 
Getting Started with AWS IoT - IOT203 - re:Invent 2017
Getting Started with AWS IoT - IOT203 - re:Invent 2017Getting Started with AWS IoT - IOT203 - re:Invent 2017
Getting Started with AWS IoT - IOT203 - re:Invent 2017
 
The Essentials of AWS IoT Device Management (IOT326-R1) - AWS re:Invent 2018
The Essentials of AWS IoT Device Management (IOT326-R1) - AWS re:Invent 2018The Essentials of AWS IoT Device Management (IOT326-R1) - AWS re:Invent 2018
The Essentials of AWS IoT Device Management (IOT326-R1) - AWS re:Invent 2018
 
IoT Building Blocks From Edge Devices to Analytics in the Cloud
IoT Building Blocks From Edge Devices to Analytics in the CloudIoT Building Blocks From Edge Devices to Analytics in the Cloud
IoT Building Blocks From Edge Devices to Analytics in the Cloud
 
Getting started with AWS IoT Core - SVC306 - New York AWS Summit
Getting started with AWS IoT Core - SVC306 - New York AWS SummitGetting started with AWS IoT Core - SVC306 - New York AWS Summit
Getting started with AWS IoT Core - SVC306 - New York AWS Summit
 
Running Serverless at The Edge (CTD302) - AWS re:Invent 2018
Running Serverless at The Edge (CTD302) - AWS re:Invent 2018Running Serverless at The Edge (CTD302) - AWS re:Invent 2018
Running Serverless at The Edge (CTD302) - AWS re:Invent 2018
 
Best Practices for Scalable Monitoring (ENT310-S) - AWS re:Invent 2018
Best Practices for Scalable Monitoring (ENT310-S) - AWS re:Invent 2018Best Practices for Scalable Monitoring (ENT310-S) - AWS re:Invent 2018
Best Practices for Scalable Monitoring (ENT310-S) - AWS re:Invent 2018
 
Best Practices for AWS IoT Core (IOT347-R1) - AWS re:Invent 2018
Best Practices for AWS IoT Core (IOT347-R1) - AWS re:Invent 2018Best Practices for AWS IoT Core (IOT347-R1) - AWS re:Invent 2018
Best Practices for AWS IoT Core (IOT347-R1) - AWS re:Invent 2018
 
How Zocdoc Achieves Automatic Threat Detection & Remediation with Security as...
How Zocdoc Achieves Automatic Threat Detection & Remediation with Security as...How Zocdoc Achieves Automatic Threat Detection & Remediation with Security as...
How Zocdoc Achieves Automatic Threat Detection & Remediation with Security as...
 
Building Fraud Detection Systems with AWS Batch and Containers (DVC301) - AWS...
Building Fraud Detection Systems with AWS Batch and Containers (DVC301) - AWS...Building Fraud Detection Systems with AWS Batch and Containers (DVC301) - AWS...
Building Fraud Detection Systems with AWS Batch and Containers (DVC301) - AWS...
 
Building Serverless Applications Using AWS AppSync and Amazon Neptune (SRV307...
Building Serverless Applications Using AWS AppSync and Amazon Neptune (SRV307...Building Serverless Applications Using AWS AppSync and Amazon Neptune (SRV307...
Building Serverless Applications Using AWS AppSync and Amazon Neptune (SRV307...
 
Developing Well-Architected Android Apps with AWS (MOB302) - AWS re:Invent 2018
Developing Well-Architected Android Apps with AWS (MOB302) - AWS re:Invent 2018Developing Well-Architected Android Apps with AWS (MOB302) - AWS re:Invent 2018
Developing Well-Architected Android Apps with AWS (MOB302) - AWS re:Invent 2018
 
Analyzing Streaming Data in Real-time - AWS Summit Cape Town 2018
Analyzing Streaming Data in Real-time - AWS Summit Cape Town 2018Analyzing Streaming Data in Real-time - AWS Summit Cape Town 2018
Analyzing Streaming Data in Real-time - AWS Summit Cape Town 2018
 
SRV408 Deep Dive on AWS IoT
SRV408 Deep Dive on AWS IoTSRV408 Deep Dive on AWS IoT
SRV408 Deep Dive on AWS IoT
 
AppSync and GraphQL on iOS
AppSync and GraphQL on iOSAppSync and GraphQL on iOS
AppSync and GraphQL on iOS
 
Black Belt Tips for IT Operations - AWS Summit Sydney 2018
Black Belt Tips for IT Operations - AWS Summit Sydney 2018Black Belt Tips for IT Operations - AWS Summit Sydney 2018
Black Belt Tips for IT Operations - AWS Summit Sydney 2018
 
AWS IoT in the Connected Home - AWS Online Tech Talks
AWS IoT in the Connected Home - AWS Online Tech TalksAWS IoT in the Connected Home - AWS Online Tech Talks
AWS IoT in the Connected Home - AWS Online Tech Talks
 
Day Two Operations of Kubernetes on AWS (GPSTEC309) - AWS re:Invent 2018
Day Two Operations of Kubernetes on AWS (GPSTEC309) - AWS re:Invent 2018Day Two Operations of Kubernetes on AWS (GPSTEC309) - AWS re:Invent 2018
Day Two Operations of Kubernetes on AWS (GPSTEC309) - AWS re:Invent 2018
 
Manage IoT Devices throughout Their Lifecycle - AWS Online Tech Talks
Manage IoT Devices throughout Their Lifecycle - AWS Online Tech TalksManage IoT Devices throughout Their Lifecycle - AWS Online Tech Talks
Manage IoT Devices throughout Their Lifecycle - AWS Online Tech Talks
 
Analyzing Streams
Analyzing StreamsAnalyzing Streams
Analyzing Streams
 

Mehr von Amazon Web Services

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Amazon Web Services
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Amazon Web Services
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateAmazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSAmazon Web Services
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Amazon Web Services
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Amazon Web Services
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...Amazon Web Services
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsAmazon Web Services
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareAmazon Web Services
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSAmazon Web Services
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAmazon Web Services
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareAmazon Web Services
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWSAmazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...Amazon Web Services
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceAmazon Web Services
 

Mehr von Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

AWS IoT Core Workshop (IOT305-R1) - AWS re:Invent 2018

  • 1.
  • 2. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS IoT Core Workshop Chris Snowden Sr. Technical Account Manager AWS/Enterprise Support I O T 3 0 5 Max Jindal Sr. Software Dev. Engineer AWS/IoT Core
  • 3. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. “Outside of a dog, a book is man’s best friend. Inside of a dog it’s too dark to read.” Groucho Marx Comedian, Philosopher
  • 4. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Agenda 1. AWS IoT Core review 2. Device shadow focus 3. Rules engine focus 4. New feature – Basic Ingest
  • 5. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS IoT Core
  • 6. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Authentication and authorization
  • 7. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Device gateway
  • 8. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. MQTT home/ac/AAA/temperat ure home/ac/BBB/temperat ure home/ac/CCC/temperat ure home/ac/DDD/temperature Device: AAA Device: BBB Device: CCC Device: DDD • Based on MQTT 3.1.1 with some deviation • QoS 0 and 1 • Unique ClientID
  • 9. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Message broker
  • 10. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Device shadow
  • 11. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS IoT shadow update example IoT device AWS IoT Delta topic + = { “state”: { “desired”: { “led1”: “blue”, “tempInF”: 60 } } }
  • 12. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. { “state”: { “reported”: { “led1”: “red”, “tempInF”: 85 }, “desired”: { “led1”: “blue”, “tempInF”: 60 } } } AWS IoT shadow update example IoT device AWS IoT Delta topic { “state”: { “reported”: { “led1”: “red”, “tempInF”: 85 } } } { “state”: { “delta”: { “led1”: “blue”, “tempInF”: 60 } } } + =
  • 13. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. { “state”: { “reported”: { “led1”: “blue”, “tempInF”: 85 }, “desired”: { “led1”: “blue”, “tempInF”: 60 } } } { “state”: { “reported”: { “led1”: “blue”, “tempInF”: 85 } } } AWS IoT shadow update example IoT device AWS IoT Delta topic + = { “state”: { “delta”: { “tempInF”: 60 } } }
  • 14. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. { “state”: { “reported”: { “tempInF”: 60 }, “desired”: { “tempInF”: 60 } } } AWS IoT shadow update example IoT device AWS IoT Delta topic { “state”: { “reported”: { “tempInF”: 60 } } } =+ No message sent
  • 15. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS IoT device shadow topics (MQTT) Update: $aws/things/{thingName}/shadow/update Delta: $aws/things/{thingName}/shadow/update/delta Get: $aws/things/{thingName}/shadow/get Delete: $aws/things/{thingName}/shadow/delete Documents: $aws/things/{thingName}/shadow/update/documents
  • 16. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Rules engine
  • 17. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Rules engine Connects IoT to outside world Transform message content Enrich messages with contextual data Filter erroneous or unnecessary messages Route based on content Decouples device software and cloud applications
  • 18. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Example—Sending event to AWS services Payload: { "temp": 33, "wind": 1.02 } MQTT topic: pws/station123 "context": {...}, "event": { "temp": 33, "wind": 1.02, "timestamp": 1000209900 } Lambda function "deliveryStreamName": {...}, "msgNNN": { "temp": 33, "wind": 1.02, "timestamp": 1000209900 } Amazon Kinesis Firehose Rule configured on the topic
  • 19. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Anatomy of a rule SELECT newuuid() as eventId, topic(2) as deviceId, rate as flowrate, ts FROM telemetry/+/flow/v2 WHERE flowrate > 0 Action: Kinesis, partitionKey “${topic(2)}” Transform SELECT Input FROM Filter WHERE Route Action
  • 20. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Anatomy of a rule SELECT newuuid() as eventId, topic(2) as deviceId, rate as flowrate, ts FROM telemetry/+/flow/v2 WHERE flowrate > 0 Action: Kinesis, partitionKey “${topic(2)}” Transform SELECT Input FROM Filter WHERE Route Action
  • 21. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Anatomy of a rule SELECT newuuid() as eventId, topic(2) as deviceId, rate as flowrate, ts FROM telemetry/+/flow/v2 WHERE flowrate > 0 Action: Kinesis, partitionKey “${topic(2)}” Transform SELECT Input FROM Filter WHERE Route Action
  • 22. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Anatomy of a rule SELECT newuuid() as eventId, topic(2) as deviceId, rate as flowrate, ts FROM telemetry/+/flow/v2 WHERE flowrate > 0 Action: Kinesis, partitionKey “${topic(2)}” Transform SELECT Input FROM Filter WHERE Route Action
  • 23. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Anatomy of a rule SELECT newuuid() as eventId, topic(2) as deviceId, rate as flowrate, ts FROM telemetry/+/flow/v2 WHERE flowrate > 0 Action: Kinesis, partitionKey “${topic(2)}” Transform SELECT Input FROM Filter WHERE Route Action
  • 24. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Understanding action components Service unique parameters For example, Amazon Simple Storage Service (Amazon S3) bucket and key; Amazon Kinesis Data stream and partition key
  • 25. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS IoT SQL example 1 • Select all /pump_status messages from factory/ • Use Amazon Machine Learning (Amazon ML) model vibration- model, if the output is 1 process action • Action: Republish to topic: factory/maint_required SELECT * FROM 'factory/+/pump_status’ WHERE machinelearning_predict( 'vibration-model', 'arn:aws:iam::123456789012:role/my-iot-aml-role', *).predictedLabel=1
  • 26. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS IoT SQL example 2 Incoming payload: { "sensor": { "temp": 78.2, "humid": 42.5 }, "bat_stat": "ok" } Action: Send to Amazon Elasticsearch Service indexed on timestamp key/value SELECT (sensor.temp – 32) * 5/9 as celsius, sensor.humid as humid, upper(bat_stat) as battery, timestamp() as timestamp FROM 'a/b'
  • 27. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. New feature—AWS IoT Basic Ingest
  • 28. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Regular message flow
  • 29. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Basic Ingest message flow Basic Ingest
  • 30. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. New feature—AWS IoT Basic Ingest
  • 31. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Any questions?
  • 32. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Workshop hands-on activity guide 1. Device provisioning 2. Setting up Amazon Simple Notification Service (Amazon SNS) topic 3. Setting up rules 4. Connecting to AWS IoT Core 5. Updating device shadow 6. Publishing telemetry data to Basic Ingest Use AWS Region – us-west-2
  • 33. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Thank you! © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Chris Snowden Max Jindal
  • 34. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.