SlideShare a Scribd company logo
1 of 37
AWS IoT
Device Management Workshop
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark
AWS IoT architecture
Fast device
registration at scale
Real-time fleet
indexing and search
Monitoring and
updating devices
AWS IoT Device Management
AWS IoT Device Management helps you register, organize, monitor,
and remotely manage your growing fleet of connected devices.
Access individual device
securely
Onboard
AWS IoT – starting to explore…
At xcale - Howto provision devices?
Secure device
connectivity
and messaging
Devices
AWS IoT Core
Fleet
onboarding,
management
and SW updates
Architecture is developed…
How Do I onboard
my devices???
© 2017, 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
• API Calls
• Single Device Provisioning
• Bulk Device Provisioning
• Fleet Provisioning
• Just-in-Time Provisioning
• Just-in-Time Registration
IoT topic rule
Lambda
function
AWS IoT provisioning options
Provisioning template
"Parameters" : {
"ThingName" : {
"SerialNumber" :
"Location" : { "Ty
"Defa
"CSR" : { "Type"
"Type" : "String" },
{ "Type" : "String" },
pe" : "String",
ult" : "WA“ },
: "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" } }
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Single/Bulk device provisioning
{"ThingName": "foo", "SerialNumber": "123", "CSR": "csr1"} {"ThingName":
"bar", "SerialNumber": "456", "CSR": "csr2"}
• Parameters with device information are used in the
provisioning template
• Single: on ”line” as parameter to register a thing
• Bulk: multiple parameter lines in an S3 bucket
“Trusted
bootstrap
identity”
“Trusted
user“
Fleet provisioning: How it works
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Fleet provisioning
• Create a provisioning template
• Optional Lambda-based pre-provisioning hook
• Create provisioning claim key/certificate
• Attach restricted policy to the claim certificate
• Device connects for the first time with claim key/certificate
• Uses the provisioning MQTT API to obtain final certificate
and being provisioned in AWS IoT
• $aws/provisioning-templates/templateName/provision/payload-
format
• $aws/provisioning-templates/templateName/provision/payload-
format/#
• $aws/certificates/create-from-csr/payload-format/#
• $aws/certificates/create/payload-format/#
• 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
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Device Onboarding – JITP
AWS
IoT
Own CA
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
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Device Onboarding – JITR
AWS
IoT
Topic
Topic-
rule
1 3 4
• Create thing
5 • Activate Certificate
• Create/Attach IoT Policy
• Attach policy to certificate
• Do more stuff…
Own CA
2
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
JITR vs. JITP
JITR JITP
Topic rule and Lambda function.
Code must be written and maintained
No code, only body template
attached to CA
Provisioning more complex: Device
connects, certificate registers with
status PENDING_ACTIVATION, service
sends MQTT message, rule triggers
Lambda, Lambda does provisioning
and optionally more stuff
Easy provisioning: Device connects,
provisioning workflow run
automatically
Flexible, different policies for
different devices can be
created/attached. Information
from/to the provisioning process can
be put/read from other systems, etc.
Static, same provisioning process for
every device
Global Device Provisioning
Lambda
function
Amazon
DynamoDB
Amazon
API
1. send thing name
Gateway
5. on successful provisioning
send endpoint, key, certificate
to devicel
4. if device is not allowed send
error message
if device is allowed determine the appropriate region,
and provision device in AWS IoT and update DynamoDB
3. query DynamoDB
if thing may be provisioned
2. call Lambda
5. send answer
IoT Device
6 device connects
to the selected region
AWS IoT
AWS IoT
AWS IoT
Optional Exercise:
https://aws.amazon.com/blogs/iot/provision-devices-globally-with-aws-iot/
Organize
Grouping and Searching for Devices
Organize
into logical
Hierarchies
Search Both the
Registry and
Device Shadow
Notification of
Device Changes
Thing Groups
Need
fluorescent
lightbulb
Thing Group Policies
Thing Group Benefits
Device Registry/Shadow/Connectivity Indexing
Lucene-index queries
Device Notifications through Registry Events
Registry Events
• AWS IoT publishes event messages when certain events
occur
• Event messages are published over MQTT with a JSON
payload
• Registry events for things, thing types, thing groups
Use-Cases
• Trigger Rules based on changes in the device registry
• Update own datastore when devices are CRUD
• Enrich data in the device registry
Access
Secure Tunneling AWS IoT Device Management
Provides secure connectivity to individual devices in just a few clicks to
diagnose issues and take action to solve them.
Establish trusted connections that
adhere to customers’ corporate
security policies
Troubleshoot and solve device
issues more quickly and cost-
effectively, with no disruption to
end user experience
Gain remote access to devices on
isolated networks or behind
firewalls
Secure Tunneling
Open-tunnel
Destination
local-proxy
Remote
Shell
Source local-
proxy
< / >
In the workshop your
• Source is AWS Cloud9
• Target is Amazon EC2
Monitor
Monitoring Device Events
Monitor Devices
Joining Groups
Monitoring of
Device
Updates
Monitor Device Security
Policies
Ressource-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":
"9187849467e75a1a92cbcf0f3a6a49b4f10d820b
99dfa62657cf4b6e60c0dac4",
"sourceIp": "35.178.51.181",
"sourcePort": 46435
}
Update
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
• Include one or more locations of dependent
data to download (i.e. S3 Objects)
• Use location links as placeholders for pre-
signed URL at run-time
• JSON Encoded
• Create jobs using AWS Console, CLI, and SDK
JSON
Define Local Actions Using Jobs
{
"operation" : "reboot”
}
{
"operations" : {
"reboot" : ”safe-mode",
"configurations" : {
"log" : "persist",
"download" : {
"target" : "${aws:iot:s3-presigned-
url:https://s3.amazonaws.com/bucket/key}",
"patch" : "critical"
},
"restart" : "blemodule"
}
}
}
Structure of Job Documents
http://bit.ly/aws-iot-device-management-workshop
Any Questions?
Thank you!
Please complete the survey
(link at the website)

More Related Content

Similar to AWS_IoT_Device_Management_Workshop.pptx

IoT at scale - Monitor and manage devices with AWS IoT Device Management - SV...
IoT at scale - Monitor and manage devices with AWS IoT Device Management - SV...IoT at scale - Monitor and manage devices with AWS IoT Device Management - SV...
IoT at scale - Monitor and manage devices with AWS IoT Device Management - SV...Amazon Web Services
 
Secure your AWS Account and your Organization's Accounts
Secure your AWS Account and your Organization's Accounts Secure your AWS Account and your Organization's Accounts
Secure your AWS Account and your Organization's Accounts Amazon Web Services
 
(MBL205) New! Everything You Want to Know About AWS IoT
(MBL205) New! Everything You Want to Know About AWS IoT(MBL205) New! Everything You Want to Know About AWS IoT
(MBL205) New! Everything You Want to Know About AWS IoTAmazon Web Services
 
Secure Configuration and Automation Overview
Secure Configuration and Automation OverviewSecure Configuration and Automation Overview
Secure Configuration and Automation OverviewAmazon Web Services
 
Best Practices for IoT Security in the Cloud
Best Practices for IoT Security in the Cloud Best Practices for IoT Security in the Cloud
Best Practices for IoT Security in the Cloud Amazon Web Services
 
Getting started with aws io t.compressed.compressed
Getting started with aws io t.compressed.compressedGetting started with aws io t.compressed.compressed
Getting started with aws io t.compressed.compressedAmazon Web Services
 
Secure Your AWS Account and Your Organization's Accounts - SID202 - Chicago A...
Secure Your AWS Account and Your Organization's Accounts - SID202 - Chicago A...Secure Your AWS Account and Your Organization's Accounts - SID202 - Chicago A...
Secure Your AWS Account and Your Organization's Accounts - SID202 - Chicago A...Amazon Web Services
 
Data encryption concepts in AWS - FND302 - AWS re:Inforce 2019
Data encryption concepts in AWS - FND302 - AWS re:Inforce 2019 Data encryption concepts in AWS - FND302 - AWS re:Inforce 2019
Data encryption concepts in AWS - FND302 - AWS re:Inforce 2019 Amazon Web Services
 
The Lifecycle of an AWS IoT Thing
The Lifecycle of an AWS IoT ThingThe Lifecycle of an AWS IoT Thing
The Lifecycle of an AWS IoT ThingAmazon Web Services
 
Connecting the Unconnected: IoT Made Simple
Connecting the Unconnected: IoT Made SimpleConnecting the Unconnected: IoT Made Simple
Connecting the Unconnected: IoT Made SimpleDanilo Poccia
 
AWS IoT Deep Dive - AWS IoT Web Day
AWS IoT Deep Dive - AWS IoT Web DayAWS IoT Deep Dive - AWS IoT Web Day
AWS IoT Deep Dive - AWS IoT Web DayAWS Germany
 
AWS IoT - Best of re:Invent Tel Aviv
AWS IoT - Best of re:Invent Tel AvivAWS IoT - Best of re:Invent Tel Aviv
AWS IoT - Best of re:Invent Tel AvivAmazon Web Services
 
Herramientas Cloud Ninja AWS "From Zero to Hero"
Herramientas Cloud Ninja AWS "From Zero to Hero"Herramientas Cloud Ninja AWS "From Zero to Hero"
Herramientas Cloud Ninja AWS "From Zero to Hero"Amazon Web Services LATAM
 
Simplify & Standardise your migration to AWS with a Migration Landing Zone
Simplify & Standardise your migration to AWS with a Migration Landing ZoneSimplify & Standardise your migration to AWS with a Migration Landing Zone
Simplify & Standardise your migration to AWS with a Migration Landing ZoneAmazon Web Services
 
Overview of IoT Infrastructure and Connectivity at AWS & Getting Started with...
Overview of IoT Infrastructure and Connectivity at AWS & Getting Started with...Overview of IoT Infrastructure and Connectivity at AWS & Getting Started with...
Overview of IoT Infrastructure and Connectivity at AWS & Getting Started with...Amazon Web Services
 

Similar to AWS_IoT_Device_Management_Workshop.pptx (20)

IoT at scale - Monitor and manage devices with AWS IoT Device Management - SV...
IoT at scale - Monitor and manage devices with AWS IoT Device Management - SV...IoT at scale - Monitor and manage devices with AWS IoT Device Management - SV...
IoT at scale - Monitor and manage devices with AWS IoT Device Management - SV...
 
Secure your AWS Account and your Organization's Accounts
Secure your AWS Account and your Organization's Accounts Secure your AWS Account and your Organization's Accounts
Secure your AWS Account and your Organization's Accounts
 
(MBL205) New! Everything You Want to Know About AWS IoT
(MBL205) New! Everything You Want to Know About AWS IoT(MBL205) New! Everything You Want to Know About AWS IoT
(MBL205) New! Everything You Want to Know About AWS IoT
 
Secure Configuration and Automation Overview
Secure Configuration and Automation OverviewSecure Configuration and Automation Overview
Secure Configuration and Automation Overview
 
Best Practices for IoT Security in the Cloud
Best Practices for IoT Security in the Cloud Best Practices for IoT Security in the Cloud
Best Practices for IoT Security in the Cloud
 
Getting started with aws io t.compressed.compressed
Getting started with aws io t.compressed.compressedGetting started with aws io t.compressed.compressed
Getting started with aws io t.compressed.compressed
 
Secure Your AWS Account and Your Organization's Accounts - SID202 - Chicago A...
Secure Your AWS Account and Your Organization's Accounts - SID202 - Chicago A...Secure Your AWS Account and Your Organization's Accounts - SID202 - Chicago A...
Secure Your AWS Account and Your Organization's Accounts - SID202 - Chicago A...
 
AWS IoT Deep Dive
AWS IoT Deep DiveAWS IoT Deep Dive
AWS IoT Deep Dive
 
Data encryption concepts in AWS - FND302 - AWS re:Inforce 2019
Data encryption concepts in AWS - FND302 - AWS re:Inforce 2019 Data encryption concepts in AWS - FND302 - AWS re:Inforce 2019
Data encryption concepts in AWS - FND302 - AWS re:Inforce 2019
 
Introduction to AWS IoT
Introduction to AWS IoTIntroduction to AWS IoT
Introduction to AWS IoT
 
The Lifecycle of an AWS IoT Thing
The Lifecycle of an AWS IoT ThingThe Lifecycle of an AWS IoT Thing
The Lifecycle of an AWS IoT Thing
 
Connecting the Unconnected: IoT Made Simple
Connecting the Unconnected: IoT Made SimpleConnecting the Unconnected: IoT Made Simple
Connecting the Unconnected: IoT Made Simple
 
Getting Started with AWS IoT
Getting Started with AWS IoTGetting Started with AWS IoT
Getting Started with AWS IoT
 
AWS IoT Deep Dive - AWS IoT Web Day
AWS IoT Deep Dive - AWS IoT Web DayAWS IoT Deep Dive - AWS IoT Web Day
AWS IoT Deep Dive - AWS IoT Web Day
 
AWS IoT - Best of re:Invent Tel Aviv
AWS IoT - Best of re:Invent Tel AvivAWS IoT - Best of re:Invent Tel Aviv
AWS IoT - Best of re:Invent Tel Aviv
 
Deep Dive on AWS IoT Core
Deep Dive on AWS IoT CoreDeep Dive on AWS IoT Core
Deep Dive on AWS IoT Core
 
Herramientas Cloud Ninja AWS "From Zero to Hero"
Herramientas Cloud Ninja AWS "From Zero to Hero"Herramientas Cloud Ninja AWS "From Zero to Hero"
Herramientas Cloud Ninja AWS "From Zero to Hero"
 
Deep Dive on AWS IoT
Deep Dive on AWS IoTDeep Dive on AWS IoT
Deep Dive on AWS IoT
 
Simplify & Standardise your migration to AWS with a Migration Landing Zone
Simplify & Standardise your migration to AWS with a Migration Landing ZoneSimplify & Standardise your migration to AWS with a Migration Landing Zone
Simplify & Standardise your migration to AWS with a Migration Landing Zone
 
Overview of IoT Infrastructure and Connectivity at AWS & Getting Started with...
Overview of IoT Infrastructure and Connectivity at AWS & Getting Started with...Overview of IoT Infrastructure and Connectivity at AWS & Getting Started with...
Overview of IoT Infrastructure and Connectivity at AWS & Getting Started with...
 

Recently uploaded

Data Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxData Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxFurkanTasci3
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdfHuman37
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]📊 Markus Baersch
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfgstagge
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxEmmanuel Dauda
 
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改yuu sss
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...Suhani Kapoor
 
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...ThinkInnovation
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfLars Albertsson
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样vhwb25kk
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一F La
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPramod Kumar Srivastava
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...Florian Roscheck
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Callshivangimorya083
 
ASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel CanterASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel Cantervoginip
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Sapana Sha
 

Recently uploaded (20)

Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
 
Data Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxData Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptx
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdf
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptx
 
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
 
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
 
E-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptxE-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptx
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
 
ASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel CanterASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel Canter
 
Call Girls in Saket 99530🔝 56974 Escort Service
Call Girls in Saket 99530🔝 56974 Escort ServiceCall Girls in Saket 99530🔝 56974 Escort Service
Call Girls in Saket 99530🔝 56974 Escort Service
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
 

AWS_IoT_Device_Management_Workshop.pptx

  • 2. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark AWS IoT architecture
  • 3. Fast device registration at scale Real-time fleet indexing and search Monitoring and updating devices AWS IoT Device Management AWS IoT Device Management helps you register, organize, monitor, and remotely manage your growing fleet of connected devices. Access individual device securely
  • 5. AWS IoT – starting to explore…
  • 6. At xcale - Howto provision devices? Secure device connectivity and messaging Devices AWS IoT Core Fleet onboarding, management and SW updates Architecture is developed… How Do I onboard my devices???
  • 7. © 2017, 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
  • 8. • API Calls • Single Device Provisioning • Bulk Device Provisioning • Fleet Provisioning • Just-in-Time Provisioning • Just-in-Time Registration IoT topic rule Lambda function AWS IoT provisioning options
  • 9. Provisioning template "Parameters" : { "ThingName" : { "SerialNumber" : "Location" : { "Ty "Defa "CSR" : { "Type" "Type" : "String" }, { "Type" : "String" }, pe" : "String", ult" : "WA“ }, : "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" } }
  • 10. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Single/Bulk device provisioning {"ThingName": "foo", "SerialNumber": "123", "CSR": "csr1"} {"ThingName": "bar", "SerialNumber": "456", "CSR": "csr2"} • Parameters with device information are used in the provisioning template • Single: on ”line” as parameter to register a thing • Bulk: multiple parameter lines in an S3 bucket
  • 12. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Fleet provisioning • Create a provisioning template • Optional Lambda-based pre-provisioning hook • Create provisioning claim key/certificate • Attach restricted policy to the claim certificate • Device connects for the first time with claim key/certificate • Uses the provisioning MQTT API to obtain final certificate and being provisioned in AWS IoT • $aws/provisioning-templates/templateName/provision/payload- format • $aws/provisioning-templates/templateName/provision/payload- format/# • $aws/certificates/create-from-csr/payload-format/# • $aws/certificates/create/payload-format/#
  • 13. • 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 © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Device Onboarding – JITP AWS IoT Own CA
  • 14. 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 © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Device Onboarding – JITR AWS IoT Topic Topic- rule 1 3 4 • Create thing 5 • Activate Certificate • Create/Attach IoT Policy • Attach policy to certificate • Do more stuff… Own CA 2
  • 15. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. JITR vs. JITP JITR JITP Topic rule and Lambda function. Code must be written and maintained No code, only body template attached to CA Provisioning more complex: Device connects, certificate registers with status PENDING_ACTIVATION, service sends MQTT message, rule triggers Lambda, Lambda does provisioning and optionally more stuff Easy provisioning: Device connects, provisioning workflow run automatically Flexible, different policies for different devices can be created/attached. Information from/to the provisioning process can be put/read from other systems, etc. Static, same provisioning process for every device
  • 16. Global Device Provisioning Lambda function Amazon DynamoDB Amazon API 1. send thing name Gateway 5. on successful provisioning send endpoint, key, certificate to devicel 4. if device is not allowed send error message if device is allowed determine the appropriate region, and provision device in AWS IoT and update DynamoDB 3. query DynamoDB if thing may be provisioned 2. call Lambda 5. send answer IoT Device 6 device connects to the selected region AWS IoT AWS IoT AWS IoT Optional Exercise: https://aws.amazon.com/blogs/iot/provision-devices-globally-with-aws-iot/
  • 18. Grouping and Searching for Devices Organize into logical Hierarchies Search Both the Registry and Device Shadow Notification of Device Changes
  • 23. Device Notifications through Registry Events
  • 24. Registry Events • AWS IoT publishes event messages when certain events occur • Event messages are published over MQTT with a JSON payload • Registry events for things, thing types, thing groups Use-Cases • Trigger Rules based on changes in the device registry • Update own datastore when devices are CRUD • Enrich data in the device registry
  • 26. Secure Tunneling AWS IoT Device Management Provides secure connectivity to individual devices in just a few clicks to diagnose issues and take action to solve them. Establish trusted connections that adhere to customers’ corporate security policies Troubleshoot and solve device issues more quickly and cost- effectively, with no disruption to end user experience Gain remote access to devices on isolated networks or behind firewalls
  • 27. Secure Tunneling Open-tunnel Destination local-proxy Remote Shell Source local- proxy < / > In the workshop your • Source is AWS Cloud9 • Target is Amazon EC2
  • 29. Monitoring Device Events Monitor Devices Joining Groups Monitoring of Device Updates Monitor Device Security Policies
  • 30. Ressource-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": "9187849467e75a1a92cbcf0f3a6a49b4f10d820b 99dfa62657cf4b6e60c0dac4", "sourceIp": "35.178.51.181", "sourcePort": 46435 }
  • 32. 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
  • 33. • Include one or more locations of dependent data to download (i.e. S3 Objects) • Use location links as placeholders for pre- signed URL at run-time • JSON Encoded • Create jobs using AWS Console, CLI, and SDK JSON Define Local Actions Using Jobs
  • 34. { "operation" : "reboot” } { "operations" : { "reboot" : ”safe-mode", "configurations" : { "log" : "persist", "download" : { "target" : "${aws:iot:s3-presigned- url:https://s3.amazonaws.com/bucket/key}", "patch" : "critical" }, "restart" : "blemodule" } } } Structure of Job Documents
  • 37. Thank you! Please complete the survey (link at the website)