SlideShare une entreprise Scribd logo
1  sur  45
Télécharger pour lire hors ligne
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
The Essentials of AWS IoT Device
Management
I O T 3 2 6
Ryan Dsouza
IoT Specialist SA
Amazon Web Services
Tim Mattison
Partner SA
Amazon Web Services
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agenda
Essentials of AWS IoT Device Management
Demo
Q & A
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Enterprise Applications
Enterprise
Users
Corp Apps
Amazon
QuickSight
Amazon
EMR
Amazon RedshiftAmazon
S3
Machine
Learning
AWS Lambda
All
AWS
Cloud
Device
Shadow
Rules
Engine
AWS IoT
Core
Certificate
Authority
AWS IoT Device
Management
AWS
IoT Users
Over-The-Air
(OTA) Updates
Analytics Data
Store
Data Pipelines
Templated
Reports
Batch Fleet
Provisioning
Real-Time Fleet
Index & Search
AWS IoT Device
Defender
Ad-hoc & In-depth
Analysis
Risk Mitigation
Monitor Device
Behavior
Alerts
Message
Broker
Audit Device
Configurations
Amazon
Kinesis
AWS IoT
Analytics
MQTT
MQTT
Endpoints Gateway/PLC
Device
Shadow
Snowball
Edge
AWS Greengrass
Lambda
Functions
Message
Router
Local Comms Long-range Comms
Amazon FreeRTOS Certificate
Authority
Local
Resources
OPC-UA
Adapter
IoT SDK
OPC-UA
MQTT
Edge
Users
Cert
WiFi
MQTT
Edge
OTA
OTA
Amazon FreeRTOS
Integrated
Client
AWS IoT architecture
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Maintain device
functionality
Improve device
performance
Manage your
device lifecycle
Why is device management important?
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Why is device management hard?
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Bulk Fleet
Provisioning
Real-time
Fleet Index & Search
Fine Grained
Device Logging
& Monitoring
Over the
Air Updates
AWS IoT Device Management is a service that helps you onboard,
organize, remotely manage, and monitor your growing number of
connected devices.
AWS IoT Device Management
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
When a Device is Provisioned
•Created in the device registry
•Device certificate registered with AWS
IoT Core
•Certificate attached to the device
•IoT Policy attached to the device
through:
• Certificate
• Thing group
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
• API Calls
• Single Device Provisioning
• Bulk Device Provisioning
• Just-in-Time Provisioning
• Just-in-Time Registration
IoT topic rule Lambda
function
AWS IoT Provisioning Options
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Provisioning Template
"Parameters" : {
"ThingName" : { "Type" : "String" },
"SerialNumber" : { "Type" : "String" },
"Location" : { "Type" : "String",
"Default" : "WA“ },
"CSR" : { "Type" : "String“ }
}
"Resources" : {
"thing" : {
"Type" : "AWS::IoT::Thing",
"Properties" : {
"ThingName" : {"Ref" : "ThingName"},
"AttributePayload" : {
"version" : "v1",
"serialNumber" : {"Ref" : "SerialNumber"}
},
"ThingTypeName" : "lightBulb-versionA",
"ThingGroups" : ["v1-lightbulbs", {"Ref" : "Location"}]
}
},
"certificate" : { "Type" : "AWS::IoT::Certificate", "Properties" : {
"CertificateSigningRequest": {"Ref" : "CSR"}, "Status" : "ACTIVE" }
}
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Grouping and Searching for Devices
Organize into
logical
Hierarchies
Search Both the
Registry and
Device Shadow
Notification of
Device Changes
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Thing groups & policies
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Search both Device Registry and Device Shadow
Lucene-index queries
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Resource-specific Logging
{
"timestamp": "2018-04-17 13:50:21.616",
"logLevel": "INFO",
"traceId": "6753a942-92c3-f979-587c-
9c634874b672",
"accountId": “123456789012",
"status": "Success",
"eventType": "Publish-In",
"protocol": "MQTT",
"topicName": "$aws/things/job-
agent/jobs/get", "clientId": "job-agent",
"principalId":
"9187849467e75a1a92cbcf0f3a6a49b4f10d820b99d
fa62657cf4b6e60c0dac4",
"sourceIp": "35.178.51.181",
"sourcePort": 46435
}
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Capabilities
Push over the air updates and actions to your
devices
Receive statuses of each device update to monitor
your updates as they execute
Control your deployment velocity and set failure
criteria to reduce the blast radius of any update
IoT thing
AWS IoT
Job Execution
Notify topic
(per thing)
Status Update
Accepted topic
(per thing)
Rejected topic
(per thing)
Accepted
Rejected
S3 Bucket
(Job Artifacts)
Optional Downloads
Job Document
IoT rule
IoT rule
IoT rule
{"operation": "install",
"files":[{
"fileName": “update.bin",
"fileSource":
{"url":”https://somebucket.s3.amazonaws.com/update.bin”
},},
{
"fileName": "config.json",
"fileSource": { "url": "https://some-
bucket.s3.amazonaws.com/config.json"}
}
]}
AWS IoT Device Management – Jobs
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
IoT thing camera IoT thing windfarm IoT thing coffee pot IoT thing travel
Job
AWS IoT
Jobs use JSON files called Job
Documents to define actions
that the device should take
locally
Example use cases:
• Firmware updates
• Reboot a device
• Rotate certificates
Define Local Actions Using Jobs
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Job topics
•$aws/things/MyThing/jobs/notify (or aws/things/MyThing/jobs/notify-next)
•$aws/things/MyThing/jobs/get/accepted
•$aws/things/MyThing/jobs/get/rejected
•$aws/things/MyThing/jobs/jobId/get/accepted
•$aws/things/MyThing/jobs/jobId/get/rejected
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Update Job Execution
{
"status": "job-execution-state",
"statusDetails": {
"string": "string"
...
},
"expectedVersion": "number",
"executionNumber": "long",
"includeJobExecutionState": "boolean",
"includeJobDocument": "boolean",
"stepTimeoutInMinutes": "long",
"clientToken": "string"
}
$aws/things/thingName/jobs/jobId/update
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Job events
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
New Features
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Jobs Fleet Rollouts
Capabilities
• Configure a variable increasing rate of deployment
• Set up abort criteria to minimize your blast radius
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Connectivity Indexing
Find the connectivity status of your devices at any time
thingName:Doorlock* AND
thingConnectivity.connected:true AND
shadow.reported.lockedStatus = “yes”
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Dynamic Thing Groups
Group your devices using a query
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Jobs Code Signing
Sign your files before distribution
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Demo architecture
Fleet
Operators
Installed Software
update in S3
Snapshot Job
Raspberry Pi Device
with Sense HAT
AWS IoT device
Node.js SDK
Sample JOBS agent
$aws/events/#
Select device & add
a job file
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Sample Job document - JSON
{
"operation":"install",
"packageName":"sensehat",
"autoStart":"true",
"workingDirectory":"sensehat",
"launchCommand":"npm install && node sensehat.js",
"files":[
{
"fileName":"package.json",
"fileSource":{
"url":"${aws:iot:s3-presigned-url:https://s3.amazonaws.com/reinvent2018ryan/package.json}"
}
},
{
"fileName":"sensehat.js",
"fileSource":{
"url":"${aws:iot:s3-presigned-url:https://s3.amazonaws.com/reinvent2018ryan/sensehat_colorbar.js}"
}
}
]
}
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Sample Job document - JSON
{
"operation":"install",
"packageName":"sensehat",
"autoStart":"true",
"workingDirectory":"sensehat",
"launchCommand":"npm install && node sensehat.js",
"files":[
{
"fileName":"package.json",
"fileSource":{
"url":"${aws:iot:s3-presigned-url:https://s3.amazonaws.com/reinvent2018ryan/package.json}"
}
},
{
"fileName":"sensehat.js",
"fileSource":{
"url":"${aws:iot:s3-presigned-url:https://s3.amazonaws.com/reinvent2018ryan/sensehat.js}"
}
}
]
}
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Sense hat LED JavaScript program
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Sense hat LED JavaScript program
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
JavaScript installation package
{
"name":"sensehat",
"version":"1.0.0",
"description":"",
"main":"sensehat.js",
"scripts":{
"test":"echo "Error: no test specified" && exit 1"
},
"author":"",
"license":"ISC",
"dependencies":{
"sense-hat-led":"^1.0.1"
}
}
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
JOB event - JSON
{
"format":"json",
"payload":{
"eventType":"JOB",
"eventId":"fb990110-4355-405b-9adf-ddd35ed5d415",
"timestamp":1541980710,
"operation":"completed",
"jobId":"Job16",
"status":"COMPLETED",
"targetSelection":"SNAPSHOT",
"targets":[
"arn:aws:iot:us-east-1:764773667781:thing/RaspberryPi1"
],
"completedAt":1541980709964,
"createdAt":1541980699152,
"lastUpdatedAt":1541980709964,
"jobProcessDetails":{
"numberOfCanceledThings":0,
"numberOfRejectedThings":0,
"numberOfFailedThings":0,
"numberOfRemovedThings":0,
"numberOfSucceededThings":1,
"numberOfTimedOutThings":0
}
},
"qos":0,
"timestamp":1541980710024,
"topic":"$aws/events/job/Job16/completed"
}
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
JOB EXECUTION event - JSON
{
"format":"json",
"payload":{
"eventType":"JOB_EXECUTION",
"eventId":"2627c8ca-c670-489b-a105-489535d52ba3",
"timestamp":1541980709,
"operation":"succeeded",
"jobId":"Job16",
"thingArn":"arn:aws:iot:us-east-1:764773667781:thing/RaspberryPi1",
"status":"SUCCEEDED",
"statusDetails":{
"operation":"install",
"state":"package installed and started"
}
},
"qos":0,
"timestamp":1541980709423,
"topic":"$aws/events/jobExecution/Job16/succeeded"
}
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Examples of job documents
systemStatus operation
{
"operation": "systemStatus“
}
reboot operation
{
"operation": "reboot“
}
shutdown operation
{
"operation": "shutdown“
}
start operation
{
"operation": "start",
"packageName": "somePackageName“
}
stop operation
{
"operation": "stop",
"packageName": "somePackageName" }
restart operation
{
"operation": "restart",
"packageName": "somePackageName“
}
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Sample device code – Node.js
const jobsModule = require('..').jobs;
const jobs = jobsModule({ keyPath: args.privateKey, certPath: args.clientCert,
caPath: args.caCert, host: args.Host, … });
jobs.subscribeToJobs(args.thingName, function(err, job) {
// Report to AWS IoT Jobs that the job execution is in progress
job.inProgress({ step: 'step 1 of job execution' }, function(err) {
// Do some work... The job document is accessible via ‘job.document’
// Report to AWS IoT Jobs that the job execution successfully completed
job.succeeded({ step: 'finished all steps' }, function(err) { });
});
});
jobs.startJobNotifications(args.thingName, function(err) {});
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Device Onboarding – JITP
AWS
IoT
Own CA
• Own CA required
• Provisioning Template attached to own CA
1. Device connects to AWS IoT, device certificate gets registered
2. JITP provisions device according to the provisioning template
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Device Onboarding – JITR
AWS
IoT
1.Device connects to AWS IoT, device certificate gets registered
2.AWS IoT publishes message to
$aws/events/certificates/registered/<caCertificateID>
3.Topic Rule is invoked
4.Topic Rule calls Lambda Function as action
5.Lambda provisions device
Topic
Topic-
rule
• Create thing
• Activate Certificate
• Create/Attach IoT Policy
• Attach policy to certificate
• Do more stuff…
1 2 3 4 5
Own CA
Thank you!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Ryan Dsouza & Tim Mattison
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Contenu connexe

Tendances

Building Chatbots with Amazon Lex
Building Chatbots with Amazon LexBuilding Chatbots with Amazon Lex
Building Chatbots with Amazon LexAmazon Web Services
 
Smart Home Skill API: Connect Any Device to Alexa & Control Any Feature (ALX3...
Smart Home Skill API: Connect Any Device to Alexa & Control Any Feature (ALX3...Smart Home Skill API: Connect Any Device to Alexa & Control Any Feature (ALX3...
Smart Home Skill API: Connect Any Device to Alexa & Control Any Feature (ALX3...Amazon Web Services
 
AWS S3 | Tutorial For Beginners | AWS S3 Bucket Tutorial | AWS Tutorial For B...
AWS S3 | Tutorial For Beginners | AWS S3 Bucket Tutorial | AWS Tutorial For B...AWS S3 | Tutorial For Beginners | AWS S3 Bucket Tutorial | AWS Tutorial For B...
AWS S3 | Tutorial For Beginners | AWS S3 Bucket Tutorial | AWS Tutorial For B...Simplilearn
 
AWS Monitoring & Logging
AWS Monitoring & LoggingAWS Monitoring & Logging
AWS Monitoring & LoggingJason Poley
 
(DEV203) Amazon API Gateway & AWS Lambda to Build Secure APIs
(DEV203) Amazon API Gateway & AWS Lambda to Build Secure APIs(DEV203) Amazon API Gateway & AWS Lambda to Build Secure APIs
(DEV203) Amazon API Gateway & AWS Lambda to Build Secure APIsAmazon Web Services
 
Amazon API Gateway and AWS Lambda: Better Together
Amazon API Gateway and AWS Lambda: Better TogetherAmazon API Gateway and AWS Lambda: Better Together
Amazon API Gateway and AWS Lambda: Better TogetherDanilo Poccia
 
AWS Lambda and the Serverless Cloud
AWS Lambda and the Serverless CloudAWS Lambda and the Serverless Cloud
AWS Lambda and the Serverless CloudAmazon Web Services
 
IoT Apps with AWS IoT and Websockets
IoT Apps with AWS IoT and Websockets IoT Apps with AWS IoT and Websockets
IoT Apps with AWS IoT and Websockets Amazon Web Services
 
AWS Webcast - Introduction to AWS Support Services
AWS Webcast - Introduction to AWS Support ServicesAWS Webcast - Introduction to AWS Support Services
AWS Webcast - Introduction to AWS Support ServicesAmazon Web Services
 
Deep Dive on Amazon S3 - AWS Online Tech Talks
Deep Dive on Amazon S3 - AWS Online Tech TalksDeep Dive on Amazon S3 - AWS Online Tech Talks
Deep Dive on Amazon S3 - AWS Online Tech TalksAmazon Web Services
 
AWS Data Analytics on AWS
AWS Data Analytics on AWSAWS Data Analytics on AWS
AWS Data Analytics on AWSsampath439572
 
Introduction to SaltStack
Introduction to SaltStackIntroduction to SaltStack
Introduction to SaltStackAymen EL Amri
 

Tendances (20)

iNTRODUCTION TO AWS IOT
iNTRODUCTION TO AWS IOTiNTRODUCTION TO AWS IOT
iNTRODUCTION TO AWS IOT
 
Building Chatbots with Amazon Lex
Building Chatbots with Amazon LexBuilding Chatbots with Amazon Lex
Building Chatbots with Amazon Lex
 
Smart Home Skill API: Connect Any Device to Alexa & Control Any Feature (ALX3...
Smart Home Skill API: Connect Any Device to Alexa & Control Any Feature (ALX3...Smart Home Skill API: Connect Any Device to Alexa & Control Any Feature (ALX3...
Smart Home Skill API: Connect Any Device to Alexa & Control Any Feature (ALX3...
 
Amazon S3 Masterclass
Amazon S3 MasterclassAmazon S3 Masterclass
Amazon S3 Masterclass
 
AWS S3 | Tutorial For Beginners | AWS S3 Bucket Tutorial | AWS Tutorial For B...
AWS S3 | Tutorial For Beginners | AWS S3 Bucket Tutorial | AWS Tutorial For B...AWS S3 | Tutorial For Beginners | AWS S3 Bucket Tutorial | AWS Tutorial For B...
AWS S3 | Tutorial For Beginners | AWS S3 Bucket Tutorial | AWS Tutorial For B...
 
AWS IAM Introduction
AWS IAM IntroductionAWS IAM Introduction
AWS IAM Introduction
 
Introduction to AWS IoT
Introduction to AWS IoTIntroduction to AWS IoT
Introduction to AWS IoT
 
AWS Monitoring & Logging
AWS Monitoring & LoggingAWS Monitoring & Logging
AWS Monitoring & Logging
 
(DEV203) Amazon API Gateway & AWS Lambda to Build Secure APIs
(DEV203) Amazon API Gateway & AWS Lambda to Build Secure APIs(DEV203) Amazon API Gateway & AWS Lambda to Build Secure APIs
(DEV203) Amazon API Gateway & AWS Lambda to Build Secure APIs
 
Introducing Amazon Lex
Introducing Amazon Lex Introducing Amazon Lex
Introducing Amazon Lex
 
Amazon API Gateway
Amazon API GatewayAmazon API Gateway
Amazon API Gateway
 
AWS 101
AWS 101AWS 101
AWS 101
 
Amazon API Gateway and AWS Lambda: Better Together
Amazon API Gateway and AWS Lambda: Better TogetherAmazon API Gateway and AWS Lambda: Better Together
Amazon API Gateway and AWS Lambda: Better Together
 
AWS Lambda and the Serverless Cloud
AWS Lambda and the Serverless CloudAWS Lambda and the Serverless Cloud
AWS Lambda and the Serverless Cloud
 
IoT Apps with AWS IoT and Websockets
IoT Apps with AWS IoT and Websockets IoT Apps with AWS IoT and Websockets
IoT Apps with AWS IoT and Websockets
 
Amazon API Gateway
Amazon API GatewayAmazon API Gateway
Amazon API Gateway
 
AWS Webcast - Introduction to AWS Support Services
AWS Webcast - Introduction to AWS Support ServicesAWS Webcast - Introduction to AWS Support Services
AWS Webcast - Introduction to AWS Support Services
 
Deep Dive on Amazon S3 - AWS Online Tech Talks
Deep Dive on Amazon S3 - AWS Online Tech TalksDeep Dive on Amazon S3 - AWS Online Tech Talks
Deep Dive on Amazon S3 - AWS Online Tech Talks
 
AWS Data Analytics on AWS
AWS Data Analytics on AWSAWS Data Analytics on AWS
AWS Data Analytics on AWS
 
Introduction to SaltStack
Introduction to SaltStackIntroduction to SaltStack
Introduction to SaltStack
 

Similaire à The Essentials of AWS IoT Device Management (IOT326-R1) - 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 TalksAmazon Web Services
 
Securing and Managing IoT Devices at Scale (SEC367-R1) - AWS re:Invent 2018
Securing and Managing IoT Devices at Scale (SEC367-R1) - AWS re:Invent 2018Securing and Managing IoT Devices at Scale (SEC367-R1) - AWS re:Invent 2018
Securing and Managing IoT Devices at Scale (SEC367-R1) - 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
 
Deep Dive into New AWS IoT Services Launched in 2018 (IOT320) - AWS re:Invent...
Deep Dive into New AWS IoT Services Launched in 2018 (IOT320) - AWS re:Invent...Deep Dive into New AWS IoT Services Launched in 2018 (IOT320) - AWS re:Invent...
Deep Dive into New AWS IoT Services Launched in 2018 (IOT320) - AWS re:Invent...Amazon Web Services
 
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
 
IoT at Scale: Monitor and Manage Devices with AWS IoT Device Management (IOT3...
IoT at Scale: Monitor and Manage Devices with AWS IoT Device Management (IOT3...IoT at Scale: Monitor and Manage Devices with AWS IoT Device Management (IOT3...
IoT at Scale: Monitor and Manage Devices with AWS IoT Device Management (IOT3...Amazon Web Services
 
Discuss How to Secure Your Virtual Data Center in the Cloud (NET210-R1) - AWS...
Discuss How to Secure Your Virtual Data Center in the Cloud (NET210-R1) - AWS...Discuss How to Secure Your Virtual Data Center in the Cloud (NET210-R1) - AWS...
Discuss How to Secure Your Virtual Data Center in the Cloud (NET210-R1) - AWS...Amazon Web Services
 
Detect Abnormal Device Behavior with AWS IoT Device Defender (IOT313-R3) - AW...
Detect Abnormal Device Behavior with AWS IoT Device Defender (IOT313-R3) - AW...Detect Abnormal Device Behavior with AWS IoT Device Defender (IOT313-R3) - AW...
Detect Abnormal Device Behavior with AWS IoT Device Defender (IOT313-R3) - AW...Amazon Web Services
 
An Active Case Study on Insider Threat Detection in your Applications
An Active Case Study on Insider Threat Detection in your ApplicationsAn Active Case Study on Insider Threat Detection in your Applications
An Active Case Study on Insider Threat Detection in your ApplicationsAmazon Web Services
 
Building Real-time Serverless Backends
Building Real-time Serverless BackendsBuilding Real-time Serverless Backends
Building Real-time Serverless BackendsAmazon Web Services
 
AWS Greengrass & Amazon FreeRTOS: Connectivity & Security at the Edge (IOT356...
AWS Greengrass & Amazon FreeRTOS: Connectivity & Security at the Edge (IOT356...AWS Greengrass & Amazon FreeRTOS: Connectivity & Security at the Edge (IOT356...
AWS Greengrass & Amazon FreeRTOS: Connectivity & Security at the Edge (IOT356...Amazon 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
 
What Can Your Logs Tell You? (ANT215) - AWS re:Invent 2018
What Can Your Logs Tell You? (ANT215) - AWS re:Invent 2018What Can Your Logs Tell You? (ANT215) - AWS re:Invent 2018
What Can Your Logs Tell You? (ANT215) - AWS re:Invent 2018Amazon Web Services
 
Eliminate Migration Confusion: Speed Migration with Automated Tracking (ENT31...
Eliminate Migration Confusion: Speed Migration with Automated Tracking (ENT31...Eliminate Migration Confusion: Speed Migration with Automated Tracking (ENT31...
Eliminate Migration Confusion: Speed Migration with Automated Tracking (ENT31...Amazon Web Services
 
IoT Building Blocks: From Edge Devices to Analytics in the Cloud - SRV304 - C...
IoT Building Blocks: From Edge Devices to Analytics in the Cloud - SRV304 - C...IoT Building Blocks: From Edge Devices to Analytics in the Cloud - SRV304 - C...
IoT Building Blocks: From Edge Devices to Analytics in the Cloud - SRV304 - C...Amazon Web Services
 
Meeting Enterprise Security Requirements with AWS Native Security Services (S...
Meeting Enterprise Security Requirements with AWS Native Security Services (S...Meeting Enterprise Security Requirements with AWS Native Security Services (S...
Meeting Enterprise Security Requirements with AWS Native Security Services (S...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
 
Using AWS Lambda as a Security Team (SEC322-R1) - AWS re:Invent 2018
Using AWS Lambda as a Security Team (SEC322-R1) - AWS re:Invent 2018Using AWS Lambda as a Security Team (SEC322-R1) - AWS re:Invent 2018
Using AWS Lambda as a Security Team (SEC322-R1) - AWS re:Invent 2018Amazon Web Services
 

Similaire à The Essentials of AWS IoT Device Management (IOT326-R1) - AWS re:Invent 2018 (20)

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
 
Securing and Managing IoT Devices at Scale (SEC367-R1) - AWS re:Invent 2018
Securing and Managing IoT Devices at Scale (SEC367-R1) - AWS re:Invent 2018Securing and Managing IoT Devices at Scale (SEC367-R1) - AWS re:Invent 2018
Securing and Managing IoT Devices at Scale (SEC367-R1) - AWS re:Invent 2018
 
AWS IoT Security Best Practices
AWS IoT Security Best PracticesAWS IoT Security Best Practices
AWS IoT Security Best Practices
 
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
 
Deep Dive into New AWS IoT Services Launched in 2018 (IOT320) - AWS re:Invent...
Deep Dive into New AWS IoT Services Launched in 2018 (IOT320) - AWS re:Invent...Deep Dive into New AWS IoT Services Launched in 2018 (IOT320) - AWS re:Invent...
Deep Dive into New AWS IoT Services Launched in 2018 (IOT320) - AWS re:Invent...
 
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
 
IoT at Scale: Monitor and Manage Devices with AWS IoT Device Management (IOT3...
IoT at Scale: Monitor and Manage Devices with AWS IoT Device Management (IOT3...IoT at Scale: Monitor and Manage Devices with AWS IoT Device Management (IOT3...
IoT at Scale: Monitor and Manage Devices with AWS IoT Device Management (IOT3...
 
Discuss How to Secure Your Virtual Data Center in the Cloud (NET210-R1) - AWS...
Discuss How to Secure Your Virtual Data Center in the Cloud (NET210-R1) - AWS...Discuss How to Secure Your Virtual Data Center in the Cloud (NET210-R1) - AWS...
Discuss How to Secure Your Virtual Data Center in the Cloud (NET210-R1) - AWS...
 
Detect Abnormal Device Behavior with AWS IoT Device Defender (IOT313-R3) - AW...
Detect Abnormal Device Behavior with AWS IoT Device Defender (IOT313-R3) - AW...Detect Abnormal Device Behavior with AWS IoT Device Defender (IOT313-R3) - AW...
Detect Abnormal Device Behavior with AWS IoT Device Defender (IOT313-R3) - AW...
 
An Active Case Study on Insider Threat Detection in your Applications
An Active Case Study on Insider Threat Detection in your ApplicationsAn Active Case Study on Insider Threat Detection in your Applications
An Active Case Study on Insider Threat Detection in your Applications
 
Building Real-time Serverless Backends
Building Real-time Serverless BackendsBuilding Real-time Serverless Backends
Building Real-time Serverless Backends
 
AWS Greengrass & Amazon FreeRTOS: Connectivity & Security at the Edge (IOT356...
AWS Greengrass & Amazon FreeRTOS: Connectivity & Security at the Edge (IOT356...AWS Greengrass & Amazon FreeRTOS: Connectivity & Security at the Edge (IOT356...
AWS Greengrass & Amazon FreeRTOS: Connectivity & Security at the Edge (IOT356...
 
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
 
What Can Your Logs Tell You? (ANT215) - AWS re:Invent 2018
What Can Your Logs Tell You? (ANT215) - AWS re:Invent 2018What Can Your Logs Tell You? (ANT215) - AWS re:Invent 2018
What Can Your Logs Tell You? (ANT215) - AWS re:Invent 2018
 
Eliminate Migration Confusion: Speed Migration with Automated Tracking (ENT31...
Eliminate Migration Confusion: Speed Migration with Automated Tracking (ENT31...Eliminate Migration Confusion: Speed Migration with Automated Tracking (ENT31...
Eliminate Migration Confusion: Speed Migration with Automated Tracking (ENT31...
 
IoT Building Blocks: From Edge Devices to Analytics in the Cloud - SRV304 - C...
IoT Building Blocks: From Edge Devices to Analytics in the Cloud - SRV304 - C...IoT Building Blocks: From Edge Devices to Analytics in the Cloud - SRV304 - C...
IoT Building Blocks: From Edge Devices to Analytics in the Cloud - SRV304 - C...
 
Meeting Enterprise Security Requirements with AWS Native Security Services (S...
Meeting Enterprise Security Requirements with AWS Native Security Services (S...Meeting Enterprise Security Requirements with AWS Native Security Services (S...
Meeting Enterprise Security Requirements with AWS Native Security Services (S...
 
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
 
Using AWS Lambda as a Security Team (SEC322-R1) - AWS re:Invent 2018
Using AWS Lambda as a Security Team (SEC322-R1) - AWS re:Invent 2018Using AWS Lambda as a Security Team (SEC322-R1) - AWS re:Invent 2018
Using AWS Lambda as a Security Team (SEC322-R1) - AWS re:Invent 2018
 

Plus de 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
 

Plus de 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
 

The Essentials of AWS IoT Device Management (IOT326-R1) - AWS re:Invent 2018

  • 1.
  • 2. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. The Essentials of AWS IoT Device Management I O T 3 2 6 Ryan Dsouza IoT Specialist SA Amazon Web Services Tim Mattison Partner SA Amazon Web Services
  • 3. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Agenda Essentials of AWS IoT Device Management Demo Q & A
  • 4. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Enterprise Applications Enterprise Users Corp Apps Amazon QuickSight Amazon EMR Amazon RedshiftAmazon S3 Machine Learning AWS Lambda All AWS Cloud Device Shadow Rules Engine AWS IoT Core Certificate Authority AWS IoT Device Management AWS IoT Users Over-The-Air (OTA) Updates Analytics Data Store Data Pipelines Templated Reports Batch Fleet Provisioning Real-Time Fleet Index & Search AWS IoT Device Defender Ad-hoc & In-depth Analysis Risk Mitigation Monitor Device Behavior Alerts Message Broker Audit Device Configurations Amazon Kinesis AWS IoT Analytics MQTT MQTT Endpoints Gateway/PLC Device Shadow Snowball Edge AWS Greengrass Lambda Functions Message Router Local Comms Long-range Comms Amazon FreeRTOS Certificate Authority Local Resources OPC-UA Adapter IoT SDK OPC-UA MQTT Edge Users Cert WiFi MQTT Edge OTA OTA Amazon FreeRTOS Integrated Client AWS IoT architecture
  • 5. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Maintain device functionality Improve device performance Manage your device lifecycle Why is device management important?
  • 6. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Why is device management hard?
  • 7. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Bulk Fleet Provisioning Real-time Fleet Index & Search Fine Grained Device Logging & Monitoring Over the Air Updates AWS IoT Device Management is a service that helps you onboard, organize, remotely manage, and monitor your growing number of connected devices. AWS IoT Device Management
  • 8. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 9. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. When a Device is Provisioned •Created in the device registry •Device certificate registered with AWS IoT Core •Certificate attached to the device •IoT Policy attached to the device through: • Certificate • Thing group
  • 10. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. • API Calls • Single Device Provisioning • Bulk Device Provisioning • Just-in-Time Provisioning • Just-in-Time Registration IoT topic rule Lambda function AWS IoT Provisioning Options
  • 11. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Provisioning Template "Parameters" : { "ThingName" : { "Type" : "String" }, "SerialNumber" : { "Type" : "String" }, "Location" : { "Type" : "String", "Default" : "WA“ }, "CSR" : { "Type" : "String“ } } "Resources" : { "thing" : { "Type" : "AWS::IoT::Thing", "Properties" : { "ThingName" : {"Ref" : "ThingName"}, "AttributePayload" : { "version" : "v1", "serialNumber" : {"Ref" : "SerialNumber"} }, "ThingTypeName" : "lightBulb-versionA", "ThingGroups" : ["v1-lightbulbs", {"Ref" : "Location"}] } }, "certificate" : { "Type" : "AWS::IoT::Certificate", "Properties" : { "CertificateSigningRequest": {"Ref" : "CSR"}, "Status" : "ACTIVE" } }
  • 12. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 13. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Grouping and Searching for Devices Organize into logical Hierarchies Search Both the Registry and Device Shadow Notification of Device Changes
  • 14. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Thing groups & policies
  • 15. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Search both Device Registry and Device Shadow Lucene-index queries
  • 16. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 17. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Resource-specific Logging { "timestamp": "2018-04-17 13:50:21.616", "logLevel": "INFO", "traceId": "6753a942-92c3-f979-587c- 9c634874b672", "accountId": “123456789012", "status": "Success", "eventType": "Publish-In", "protocol": "MQTT", "topicName": "$aws/things/job- agent/jobs/get", "clientId": "job-agent", "principalId": "9187849467e75a1a92cbcf0f3a6a49b4f10d820b99d fa62657cf4b6e60c0dac4", "sourceIp": "35.178.51.181", "sourcePort": 46435 }
  • 18. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 19. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Capabilities Push over the air updates and actions to your devices Receive statuses of each device update to monitor your updates as they execute Control your deployment velocity and set failure criteria to reduce the blast radius of any update IoT thing AWS IoT Job Execution Notify topic (per thing) Status Update Accepted topic (per thing) Rejected topic (per thing) Accepted Rejected S3 Bucket (Job Artifacts) Optional Downloads Job Document IoT rule IoT rule IoT rule {"operation": "install", "files":[{ "fileName": “update.bin", "fileSource": {"url":”https://somebucket.s3.amazonaws.com/update.bin” },}, { "fileName": "config.json", "fileSource": { "url": "https://some- bucket.s3.amazonaws.com/config.json"} } ]} AWS IoT Device Management – Jobs
  • 20. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. IoT thing camera IoT thing windfarm IoT thing coffee pot IoT thing travel Job AWS IoT Jobs use JSON files called Job Documents to define actions that the device should take locally Example use cases: • Firmware updates • Reboot a device • Rotate certificates Define Local Actions Using Jobs
  • 21. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Job topics •$aws/things/MyThing/jobs/notify (or aws/things/MyThing/jobs/notify-next) •$aws/things/MyThing/jobs/get/accepted •$aws/things/MyThing/jobs/get/rejected •$aws/things/MyThing/jobs/jobId/get/accepted •$aws/things/MyThing/jobs/jobId/get/rejected
  • 22. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Update Job Execution { "status": "job-execution-state", "statusDetails": { "string": "string" ... }, "expectedVersion": "number", "executionNumber": "long", "includeJobExecutionState": "boolean", "includeJobDocument": "boolean", "stepTimeoutInMinutes": "long", "clientToken": "string" } $aws/things/thingName/jobs/jobId/update
  • 23. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Job events
  • 24. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. New Features
  • 25. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Jobs Fleet Rollouts Capabilities • Configure a variable increasing rate of deployment • Set up abort criteria to minimize your blast radius
  • 26. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Connectivity Indexing Find the connectivity status of your devices at any time thingName:Doorlock* AND thingConnectivity.connected:true AND shadow.reported.lockedStatus = “yes”
  • 27. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Dynamic Thing Groups Group your devices using a query
  • 28. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Jobs Code Signing Sign your files before distribution
  • 29. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 30. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Demo architecture Fleet Operators Installed Software update in S3 Snapshot Job Raspberry Pi Device with Sense HAT AWS IoT device Node.js SDK Sample JOBS agent $aws/events/# Select device & add a job file
  • 31. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 32. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 33. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Sample Job document - JSON { "operation":"install", "packageName":"sensehat", "autoStart":"true", "workingDirectory":"sensehat", "launchCommand":"npm install && node sensehat.js", "files":[ { "fileName":"package.json", "fileSource":{ "url":"${aws:iot:s3-presigned-url:https://s3.amazonaws.com/reinvent2018ryan/package.json}" } }, { "fileName":"sensehat.js", "fileSource":{ "url":"${aws:iot:s3-presigned-url:https://s3.amazonaws.com/reinvent2018ryan/sensehat_colorbar.js}" } } ] }
  • 34. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Sample Job document - JSON { "operation":"install", "packageName":"sensehat", "autoStart":"true", "workingDirectory":"sensehat", "launchCommand":"npm install && node sensehat.js", "files":[ { "fileName":"package.json", "fileSource":{ "url":"${aws:iot:s3-presigned-url:https://s3.amazonaws.com/reinvent2018ryan/package.json}" } }, { "fileName":"sensehat.js", "fileSource":{ "url":"${aws:iot:s3-presigned-url:https://s3.amazonaws.com/reinvent2018ryan/sensehat.js}" } } ] }
  • 35. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Sense hat LED JavaScript program
  • 36. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Sense hat LED JavaScript program
  • 37. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. JavaScript installation package { "name":"sensehat", "version":"1.0.0", "description":"", "main":"sensehat.js", "scripts":{ "test":"echo "Error: no test specified" && exit 1" }, "author":"", "license":"ISC", "dependencies":{ "sense-hat-led":"^1.0.1" } }
  • 38. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. JOB event - JSON { "format":"json", "payload":{ "eventType":"JOB", "eventId":"fb990110-4355-405b-9adf-ddd35ed5d415", "timestamp":1541980710, "operation":"completed", "jobId":"Job16", "status":"COMPLETED", "targetSelection":"SNAPSHOT", "targets":[ "arn:aws:iot:us-east-1:764773667781:thing/RaspberryPi1" ], "completedAt":1541980709964, "createdAt":1541980699152, "lastUpdatedAt":1541980709964, "jobProcessDetails":{ "numberOfCanceledThings":0, "numberOfRejectedThings":0, "numberOfFailedThings":0, "numberOfRemovedThings":0, "numberOfSucceededThings":1, "numberOfTimedOutThings":0 } }, "qos":0, "timestamp":1541980710024, "topic":"$aws/events/job/Job16/completed" }
  • 39. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. JOB EXECUTION event - JSON { "format":"json", "payload":{ "eventType":"JOB_EXECUTION", "eventId":"2627c8ca-c670-489b-a105-489535d52ba3", "timestamp":1541980709, "operation":"succeeded", "jobId":"Job16", "thingArn":"arn:aws:iot:us-east-1:764773667781:thing/RaspberryPi1", "status":"SUCCEEDED", "statusDetails":{ "operation":"install", "state":"package installed and started" } }, "qos":0, "timestamp":1541980709423, "topic":"$aws/events/jobExecution/Job16/succeeded" }
  • 40. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Examples of job documents systemStatus operation { "operation": "systemStatus“ } reboot operation { "operation": "reboot“ } shutdown operation { "operation": "shutdown“ } start operation { "operation": "start", "packageName": "somePackageName“ } stop operation { "operation": "stop", "packageName": "somePackageName" } restart operation { "operation": "restart", "packageName": "somePackageName“ }
  • 41. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Sample device code – Node.js const jobsModule = require('..').jobs; const jobs = jobsModule({ keyPath: args.privateKey, certPath: args.clientCert, caPath: args.caCert, host: args.Host, … }); jobs.subscribeToJobs(args.thingName, function(err, job) { // Report to AWS IoT Jobs that the job execution is in progress job.inProgress({ step: 'step 1 of job execution' }, function(err) { // Do some work... The job document is accessible via ‘job.document’ // Report to AWS IoT Jobs that the job execution successfully completed job.succeeded({ step: 'finished all steps' }, function(err) { }); }); }); jobs.startJobNotifications(args.thingName, function(err) {});
  • 42. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Device Onboarding – JITP AWS IoT Own CA • Own CA required • Provisioning Template attached to own CA 1. Device connects to AWS IoT, device certificate gets registered 2. JITP provisions device according to the provisioning template
  • 43. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Device Onboarding – JITR AWS IoT 1.Device connects to AWS IoT, device certificate gets registered 2.AWS IoT publishes message to $aws/events/certificates/registered/<caCertificateID> 3.Topic Rule is invoked 4.Topic Rule calls Lambda Function as action 5.Lambda provisions device Topic Topic- rule • Create thing • Activate Certificate • Create/Attach IoT Policy • Attach policy to certificate • Do more stuff… 1 2 3 4 5 Own CA
  • 44. Thank you! © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Ryan Dsouza & Tim Mattison
  • 45. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.