SlideShare a Scribd company logo
1 of 38
Download to read offline
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Greengrass & Amazon FreeRTOS:
Connectivity and Security at the Edge
Richard Elberger
Global Partner Solutions Architect – IoT
Amazon Web Services
I O T 3 5 6
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agenda
What the AWS Cloud is doing at the edge
Amazon FreeRTOS capabilities
AWS Greengrass capabilities
Orchestrating edge services together
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Breakout repeats
Tuesday, November 27th
AWS Greengrass & Amazon FreeRTOS: Connectivity & Security at the Edge
4:45 p.m. – 5:35 p.m. | MGM, Level 3, South Concourse 301
Thursday, November 29th
AWS Greengrass & Amazon FreeRTOS: Connectivity & Security at the Edge
12:15 p.m. – 1:05 p.m. | Mirage, Antigua B
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Things
Sense & Act
Cloud
Storage & Compute
Intelligence
Insights & Logic → Action
Our concept of IoT
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Things
Sense & Act
Cloud
Storage & Compute
Intelligence
Insights & logic → Action
AWS IoT Architecture
Secure device
connectivity
and messaging
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Endpoints
Fleet onboarding,
management and
SW updates
Fleet
audit and
protection
IoT data analytics
and intelligence
Gateway
Things
Sense & Act
Cloud
Storage & Compute
Secure local
triggers, actions,
and data sync
Secure device
connectivity
and messaging
AWS IoT Architecture
Intelligence
Insights & logic → Action
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Data processed
in the cloud
Data processed
locally
AWS Greengrass extends AWS onto your devices, so they can act
locally on the data they generate, while still taking advantage of the
cloud
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Security
AWS-grade
security
Data and
state sync
Local
device shadows
Local
triggers
Local
message broker
AWS Greengrass features
Local
actions
Local
AWS Lambda functions
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon FreeRTOS is an IoT
microcontroller operating system
that makes small, low-powered
edge devices easy to program,
deploy, secure, maintain, and
connect
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon FreeRTOS
IoT operating system for microcontrollers
Device software for
connectivity,
security, and
updates
Integrated cloud
services
One of the top
real-time operating
systems for
microcontrollers
Broad array of
hardware and tools
Faster time to market Minimize
complexity
Reduce cost
Free and open
source
No commitments
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
A modular architecture, driving faster time to market
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario: Innovation at the edge of IoT
AQAGreengrass Core
Zone Controller
#2
#1
#3
#4
#4
#5
#6
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Connect to AWS IoT/AWS Greengrass
Greengrass/config/config.json
{
"coreThing": {
…
"iotHost":"[HOST].iot.[REGION].amazonaws.com",
"ggHost":"greengrass.iot.[REGION].amazonaws.com",
},
"runtime": {
"cgroup": {
…
}
}
}
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Authenticate with AWS IoT
AWS IoT cloud
certificate
AWS Greengrass
client certificate
AWS IoT -> Create Thing -> Security ->
Create Certificate -> Activate
{
"Version": "2017-11-30",
"Statement":[
{
"Effect": "Allow",
"Action": [
"iot:*",
"greengrass:*"
],
"Resource": [
"*"
]
}
]
}
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Authorize AWS Greengrass to deploy to the edge
/greengrass/servicerole
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Greengrass Lambda authorization
/greengrass/groups/GroupId/role
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Greengrass core: Server certificate
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Greengrass core: Certificate lifecycle
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Greengrass core: Discoverability
aws greengrass update-connectivity-info --thing-name "<CoreThingName>" --connectivity-info '[
{
"Id": "<ConnectivityInfoElementId>",
"HostAddress": "<CoreEndpoint>",
"PortNumber": <port>,
"Metadata": "<description>”
}]'
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Discover AWS Greengrass core
…
"Connectivity": [
{
"hostAddress": "core-01-address",
"portNumber": core-01-port,
"metadata": "core-01-description”
}
]
…
],
"CAs": [
"-----BEGIN CERTIFICATE---
--cert-contents---
--END CERTIFICATE-----"
]
…
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Greengrass: End-to-end security
• Greengrass Core Server Certificate
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Greengrass: end-to-end security
• Greengrass Core Server Certificate
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Greengrass security: Best practices
• Server certificate lifetime
• Client certificate revocation
• Hard rotate root CA
• Discover often
• Scope down group role
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Device to AWS Greengrass: Code flow
Device power-on: main()
Network start-up:
vApplicationIPNetworkEventHook()
AWS Greengrass Discovery
MQTT
GGD_GetGGCIPandCertificate
GGD_JSONRequestStart
GGD_JSONRequestGetSize
GGD_JSONRequestGetFile
GGD_GetIPandCertificateFromJSON
MQTT_AGENT_Create
MQTT_AGENT_Connect
MQTT_AGENT_Publish
MQTT_AGENT_Disconnect
MQTT_AGENT_Delete
1
2
4
3
5
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon FreeRTOS: RAM footprint
Stack:
RSA key
Heap:
RSA key
Stack:
ECC key
Heap:
ECC key
App 6984 55176 6984 50064
MQTT 4276 4276
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
How do I get started?
Many places you can get Amazon FreeRTOS software
Visit the Amazon
FreeRTOS console
GitHub FreeRTOS.org SourceForge
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Greengrass Discovery demo
• Amazon FreeRTOS microcontroller (Arm Cortex-M4) developer board
• AWS Greengrass core
1
Amazon FreeRTOS:
Developer board
AWS Greengrass
core
3
AWS
Greengrass
Discovery with
Amazon
FreeRTOS
2
4
© 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.
Some thought-provoking questions
Are you bringing together AWS Greengrass and edge devices today?
Are you connecting small microcontroller devices together and
aggregating data at the edge?
What other RTOS would you consider for the edge? Conversely, is there
another edge gateway aggregation device you would consider?
What is your top priority for the edge? Security? Power management?
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Call to action
Identify interesting, compelling problems to solve at the edge
Learn how to orchestrate AWS Greengrass and small, constrained devices
together
Solve real problems at the edge, but leverage valuable data in the cloud
Talk to us! Here at the conference and with your account team about
further learning paths
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Key learnings
• API for AWS Greengrass Discovery by Amazon FreeRTOS
• Decision criteria
• Crypto offload versus not
• RSA versus ECDSA
• How to build an application
• AWS Greengrass Discovery
• Lambda
Thank you!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

More Related Content

What's hot

What's hot (20)

Visualizing Big Data Insights with Amazon QuickSight
Visualizing Big Data Insights with Amazon QuickSightVisualizing Big Data Insights with Amazon QuickSight
Visualizing Big Data Insights with Amazon QuickSight
 
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...
 
Edge Computing and Cloud Computing
Edge Computing and Cloud ComputingEdge Computing and Cloud Computing
Edge Computing and Cloud Computing
 
Media Workloads on AWS
Media Workloads on AWSMedia Workloads on AWS
Media Workloads on AWS
 
Microsoft Azure - Introduction to microsoft's public cloud
Microsoft Azure - Introduction to microsoft's public cloudMicrosoft Azure - Introduction to microsoft's public cloud
Microsoft Azure - Introduction to microsoft's public cloud
 
Microsoft Azure Cloud Services
Microsoft Azure Cloud ServicesMicrosoft Azure Cloud Services
Microsoft Azure Cloud Services
 
How Edge Computing Works | What is Edge Computing | Edge Computing Benefits |...
How Edge Computing Works | What is Edge Computing | Edge Computing Benefits |...How Edge Computing Works | What is Edge Computing | Edge Computing Benefits |...
How Edge Computing Works | What is Edge Computing | Edge Computing Benefits |...
 
The State of Edge Computing for IoT
The State of Edge Computing for IoTThe State of Edge Computing for IoT
The State of Edge Computing for IoT
 
Connecting low-power devices to the cloud with Amazon FreeRTOS BLE - SVC206 -...
Connecting low-power devices to the cloud with Amazon FreeRTOS BLE - SVC206 -...Connecting low-power devices to the cloud with Amazon FreeRTOS BLE - SVC206 -...
Connecting low-power devices to the cloud with Amazon FreeRTOS BLE - SVC206 -...
 
Edge Computing & AI
Edge Computing & AIEdge Computing & AI
Edge Computing & AI
 
Running Mission Critical Workload for Financial Services Institutions on AWS
Running Mission Critical Workload for Financial Services Institutions on AWSRunning Mission Critical Workload for Financial Services Institutions on AWS
Running Mission Critical Workload for Financial Services Institutions on AWS
 
Cloud Migration Cookbook: A Guide To Moving Your Apps To The Cloud
Cloud Migration Cookbook: A Guide To Moving Your Apps To The CloudCloud Migration Cookbook: A Guide To Moving Your Apps To The Cloud
Cloud Migration Cookbook: A Guide To Moving Your Apps To The Cloud
 
AWS Foundations
AWS FoundationsAWS Foundations
AWS Foundations
 
Introduction to AWS IoT Greengrass - SVC305 - Chicago AWS Summit
Introduction to AWS IoT Greengrass - SVC305 - Chicago AWS SummitIntroduction to AWS IoT Greengrass - SVC305 - Chicago AWS Summit
Introduction to AWS IoT Greengrass - SVC305 - Chicago AWS Summit
 
Building a Better Business Case for Migrating to Cloud
Building a Better Business Case for Migrating to CloudBuilding a Better Business Case for Migrating to Cloud
Building a Better Business Case for Migrating to Cloud
 
Azure Networking (1).pptx
Azure Networking (1).pptxAzure Networking (1).pptx
Azure Networking (1).pptx
 
App Modernisation with Microsoft Azure
App Modernisation with Microsoft AzureApp Modernisation with Microsoft Azure
App Modernisation with Microsoft Azure
 
AWS Cloud Adoption Framework and Workshops
AWS Cloud Adoption Framework and WorkshopsAWS Cloud Adoption Framework and Workshops
AWS Cloud Adoption Framework and Workshops
 
AIOps, IT Analytics, and Business Performance: What’s Needed and What Works
AIOps, IT Analytics, and Business Performance: What’s Needed and What Works AIOps, IT Analytics, and Business Performance: What’s Needed and What Works
AIOps, IT Analytics, and Business Performance: What’s Needed and What Works
 
Creating the Cloud Business Case
Creating the Cloud Business CaseCreating the Cloud Business Case
Creating the Cloud Business Case
 

Similar to AWS Greengrass & Amazon FreeRTOS: Connectivity & Security at the Edge (IOT356-R1) - AWS re:Invent 2018

Similar to AWS Greengrass & Amazon FreeRTOS: Connectivity & Security at the Edge (IOT356-R1) - AWS re:Invent 2018 (20)

NEW LAUNCH! AWS Greengrass and Amazon FreeRTOS: Connectivity and Security at ...
NEW LAUNCH! AWS Greengrass and Amazon FreeRTOS: Connectivity and Security at ...NEW LAUNCH! AWS Greengrass and Amazon FreeRTOS: Connectivity and Security at ...
NEW LAUNCH! AWS Greengrass and Amazon FreeRTOS: Connectivity and Security at ...
 
IoT Compute at the Edge with AWS Greengrass - GOTO Amsterdam
IoT Compute at the Edge with AWS Greengrass - GOTO AmsterdamIoT Compute at the Edge with AWS Greengrass - GOTO Amsterdam
IoT Compute at the Edge with AWS Greengrass - GOTO Amsterdam
 
Machine Learning at the IoT Edge (IOT214) - AWS re:Invent 2018
Machine Learning at the IoT Edge (IOT214) - AWS re:Invent 2018Machine Learning at the IoT Edge (IOT214) - AWS re:Invent 2018
Machine Learning at the IoT Edge (IOT214) - AWS re:Invent 2018
 
SRV206 Edge Computing with AWS Greengrass
 SRV206 Edge Computing with AWS Greengrass SRV206 Edge Computing with AWS Greengrass
SRV206 Edge Computing with AWS Greengrass
 
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...
 
Code in the Cloud- Deploy on Microcontroller and Edge Devices
Code in the Cloud- Deploy on Microcontroller and Edge DevicesCode in the Cloud- Deploy on Microcontroller and Edge Devices
Code in the Cloud- Deploy on Microcontroller and Edge Devices
 
AWS IoT - from Cloud to Edge | AWS Floor28
AWS IoT - from Cloud to Edge | AWS Floor28AWS IoT - from Cloud to Edge | AWS Floor28
AWS IoT - from Cloud to Edge | AWS Floor28
 
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...
 
AWS - Security & Compliance
AWS - Security & ComplianceAWS - Security & Compliance
AWS - Security & Compliance
 
Introducing the New Features of AWS Greengrass (IOT365) - AWS re:Invent 2018
Introducing the New Features of AWS Greengrass (IOT365) - AWS re:Invent 2018Introducing the New Features of AWS Greengrass (IOT365) - AWS re:Invent 2018
Introducing the New Features of AWS Greengrass (IOT365) - AWS re:Invent 2018
 
Leadership Session: AWS IoT (IOT218-L) - AWS re:Invent 2018
Leadership Session: AWS IoT (IOT218-L) - AWS re:Invent 2018Leadership Session: AWS IoT (IOT218-L) - AWS re:Invent 2018
Leadership Session: AWS IoT (IOT218-L) - AWS re:Invent 2018
 
Building IoT Applications for a Smart Home, ft. Vestel (IOT306-R1) - AWS re:I...
Building IoT Applications for a Smart Home, ft. Vestel (IOT306-R1) - AWS re:I...Building IoT Applications for a Smart Home, ft. Vestel (IOT306-R1) - AWS re:I...
Building IoT Applications for a Smart Home, ft. Vestel (IOT306-R1) - AWS re:I...
 
AWS Espressif Amazon FreeRTOS
AWS Espressif Amazon FreeRTOSAWS Espressif Amazon FreeRTOS
AWS Espressif Amazon FreeRTOS
 
AWS IoT_Connected Home Solutions
AWS IoT_Connected Home Solutions AWS IoT_Connected Home Solutions
AWS IoT_Connected Home Solutions
 
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...
 
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018
 
Living on the Edge with AWS Greengrass
Living on the Edge with AWS GreengrassLiving on the Edge with AWS Greengrass
Living on the Edge with AWS Greengrass
 
Exploring Blockchain Technology and Emerging Trends
Exploring Blockchain Technology and Emerging TrendsExploring Blockchain Technology and Emerging Trends
Exploring Blockchain Technology and Emerging Trends
 
Turner’s Journey to Scale Securely on a Lean Budget (SEC357-R1) - AWS re:Inve...
Turner’s Journey to Scale Securely on a Lean Budget (SEC357-R1) - AWS re:Inve...Turner’s Journey to Scale Securely on a Lean Budget (SEC357-R1) - AWS re:Inve...
Turner’s Journey to Scale Securely on a Lean Budget (SEC357-R1) - AWS re:Inve...
 
IoT Building Blocks_ From Edge Devices to Analytics in the Cloud
IoT Building Blocks_ From Edge Devices to Analytics in the Cloud IoT Building Blocks_ From Edge Devices to Analytics in the Cloud
IoT Building Blocks_ From Edge Devices to Analytics in the Cloud
 

More from Amazon 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 AWS
Amazon 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 Deck
Amazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
Amazon 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
 

More from 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 Greengrass & Amazon FreeRTOS: Connectivity & Security at the Edge (IOT356-R1) - AWS re:Invent 2018

  • 1.
  • 2. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Greengrass & Amazon FreeRTOS: Connectivity and Security at the Edge Richard Elberger Global Partner Solutions Architect – IoT Amazon Web Services I O T 3 5 6
  • 3. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Agenda What the AWS Cloud is doing at the edge Amazon FreeRTOS capabilities AWS Greengrass capabilities Orchestrating edge services together
  • 4. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Breakout repeats Tuesday, November 27th AWS Greengrass & Amazon FreeRTOS: Connectivity & Security at the Edge 4:45 p.m. – 5:35 p.m. | MGM, Level 3, South Concourse 301 Thursday, November 29th AWS Greengrass & Amazon FreeRTOS: Connectivity & Security at the Edge 12:15 p.m. – 1:05 p.m. | Mirage, Antigua B
  • 5. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 6. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Things Sense & Act Cloud Storage & Compute Intelligence Insights & Logic → Action Our concept of IoT
  • 7. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Things Sense & Act Cloud Storage & Compute Intelligence Insights & logic → Action AWS IoT Architecture Secure device connectivity and messaging
  • 8. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Endpoints Fleet onboarding, management and SW updates Fleet audit and protection IoT data analytics and intelligence Gateway Things Sense & Act Cloud Storage & Compute Secure local triggers, actions, and data sync Secure device connectivity and messaging AWS IoT Architecture Intelligence Insights & logic → Action
  • 9. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Data processed in the cloud Data processed locally AWS Greengrass extends AWS onto your devices, so they can act locally on the data they generate, while still taking advantage of the cloud
  • 10. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Security AWS-grade security Data and state sync Local device shadows Local triggers Local message broker AWS Greengrass features Local actions Local AWS Lambda functions
  • 11. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon FreeRTOS is an IoT microcontroller operating system that makes small, low-powered edge devices easy to program, deploy, secure, maintain, and connect
  • 12. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon FreeRTOS IoT operating system for microcontrollers Device software for connectivity, security, and updates Integrated cloud services One of the top real-time operating systems for microcontrollers Broad array of hardware and tools Faster time to market Minimize complexity Reduce cost Free and open source No commitments
  • 13. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. A modular architecture, driving faster time to market
  • 14. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario: Innovation at the edge of IoT AQAGreengrass Core Zone Controller #2 #1 #3 #4 #4 #5 #6
  • 15. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 16. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Connect to AWS IoT/AWS Greengrass Greengrass/config/config.json { "coreThing": { … "iotHost":"[HOST].iot.[REGION].amazonaws.com", "ggHost":"greengrass.iot.[REGION].amazonaws.com", }, "runtime": { "cgroup": { … } } }
  • 17. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Authenticate with AWS IoT AWS IoT cloud certificate AWS Greengrass client certificate AWS IoT -> Create Thing -> Security -> Create Certificate -> Activate { "Version": "2017-11-30", "Statement":[ { "Effect": "Allow", "Action": [ "iot:*", "greengrass:*" ], "Resource": [ "*" ] } ] }
  • 18. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Authorize AWS Greengrass to deploy to the edge /greengrass/servicerole
  • 19. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Greengrass Lambda authorization /greengrass/groups/GroupId/role
  • 20. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 21. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Greengrass core: Server certificate
  • 22. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Greengrass core: Certificate lifecycle
  • 23. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Greengrass core: Discoverability aws greengrass update-connectivity-info --thing-name "<CoreThingName>" --connectivity-info '[ { "Id": "<ConnectivityInfoElementId>", "HostAddress": "<CoreEndpoint>", "PortNumber": <port>, "Metadata": "<description>” }]'
  • 24. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Discover AWS Greengrass core … "Connectivity": [ { "hostAddress": "core-01-address", "portNumber": core-01-port, "metadata": "core-01-description” } ] … ], "CAs": [ "-----BEGIN CERTIFICATE--- --cert-contents--- --END CERTIFICATE-----" ] …
  • 25. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Greengrass: End-to-end security • Greengrass Core Server Certificate © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Greengrass: end-to-end security • Greengrass Core Server Certificate
  • 26. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Greengrass security: Best practices • Server certificate lifetime • Client certificate revocation • Hard rotate root CA • Discover often • Scope down group role
  • 27. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 28. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Device to AWS Greengrass: Code flow Device power-on: main() Network start-up: vApplicationIPNetworkEventHook() AWS Greengrass Discovery MQTT GGD_GetGGCIPandCertificate GGD_JSONRequestStart GGD_JSONRequestGetSize GGD_JSONRequestGetFile GGD_GetIPandCertificateFromJSON MQTT_AGENT_Create MQTT_AGENT_Connect MQTT_AGENT_Publish MQTT_AGENT_Disconnect MQTT_AGENT_Delete 1 2 4 3 5
  • 29. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon FreeRTOS: RAM footprint Stack: RSA key Heap: RSA key Stack: ECC key Heap: ECC key App 6984 55176 6984 50064 MQTT 4276 4276
  • 30. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. How do I get started? Many places you can get Amazon FreeRTOS software Visit the Amazon FreeRTOS console GitHub FreeRTOS.org SourceForge
  • 31. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Greengrass Discovery demo • Amazon FreeRTOS microcontroller (Arm Cortex-M4) developer board • AWS Greengrass core 1 Amazon FreeRTOS: Developer board AWS Greengrass core 3 AWS Greengrass Discovery with Amazon FreeRTOS 2 4
  • 32. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 33. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 34. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Some thought-provoking questions Are you bringing together AWS Greengrass and edge devices today? Are you connecting small microcontroller devices together and aggregating data at the edge? What other RTOS would you consider for the edge? Conversely, is there another edge gateway aggregation device you would consider? What is your top priority for the edge? Security? Power management?
  • 35. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Call to action Identify interesting, compelling problems to solve at the edge Learn how to orchestrate AWS Greengrass and small, constrained devices together Solve real problems at the edge, but leverage valuable data in the cloud Talk to us! Here at the conference and with your account team about further learning paths
  • 36. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Key learnings • API for AWS Greengrass Discovery by Amazon FreeRTOS • Decision criteria • Crypto offload versus not • RSA versus ECDSA • How to build an application • AWS Greengrass Discovery • Lambda
  • 37. Thank you! © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 38. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.