SlideShare a Scribd company logo
1 of 37
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Greengrass and Amazon FreeRTOS
C o n n e c t i v i t y a n d S e c u r i t y a t t h e E d g e
N o v e m b e r 3 0 , 2 0 1 7
A W S r e : I n v e n t
Shyam Krishnamoorthy
Senior Manager, Amazon FreeRTOS
Jimi Shah
Software Development Manager, AWS Greengrass
Dan Griffin
Senior Software Engineer, Amazon FreeRTOS
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Agenda
q Introduction to AWS Greengrass and Amazon FreeRTOS
q Scenario: Enabling innovation at the edge of IoT
q Making it work
q AWS Greengrass
q Amazon FreeRTOS
q Demo
q Q&A
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
The Three Pillars of IoT
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
The Three Pillars of IoT
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS IoT Core – Last Week
AWS IoT
Messages
Device Gateway
Messages
Applications
Device Shadow
Message Broker
API
Registry
Messages
Messages
Rules Engine
AWS Services
Analytics
Amazon Kinesis
Artificial Intelligence
Amazon EMR
Messaging
Amazon SQS
Amazon SNS
Database
Amazon Redshift
Amazon DynamoDB
Manage
Amazon CloudWatch
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
The Three Pillars of IoT
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS IoT Core – This Week
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Benefits of AWS IoT
The AWS IoT Core platform enables you:
To securely connect
devices to the AWS Cloud
and other devices at scale
To route, process and act
upon data from these devices
To enable applications to
interact with devices even
when they are offline
To fully integrate with
other AWS service to reason
on top of the data
(Analytics, Databases, AI, etc.)
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
The Three Pillars of IoT
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Greengrass
AWS Greengrass is software that lets you run local compute,
messaging, data caching, and sync capabilities for connected
devices in a secure way.
With AWS Greengrass, connected devices can run AWS Lambda
functions, keep device data in sync, and communicate with other
devices securely – even when not connected to the Internet.
© 2017, 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
© 2017, 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
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon FreeRTOS
Amazon FreeRTOS is an IoT microcontroller operating system
that makes small, low powered edge devices easy to program,
deploy, secure, maintain, and connect.
© 2017, 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
#1 Real-Time
Operating System
for
microcontrollers
Broad ecosystem of
hardware and tools
Faster time-to-market Minimize
complexity
Reduce cost
Free and Open
Source
No commitments
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
A modular architecture, driving faster
time to market
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Scenario: Innovation at the Edge of IoT
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Scenario: Innovation at the Edge of IoT
Amazon SNS
AWS IoT Core
AWS Greengrass Service
Greengrass Core
Zone Controller
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Greengrass: Cloud operations
Connect to AWS IoT/Greengrass
Greengrass/config/config.json
{
"coreThing": {
…
"iotHost":"[HOST].iot.[REGION].amazonaws.com",
"ggHost":"greengrass.iot.[REGION].amazonaws.com",
},
"runtime": {
"cgroup": {
…
}
}
}
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Authenticate with AWS IoT
IoT cloud certificate
Greengrass client
certificate
AWS IoT -> Create Thing -> Security ->
Create Certificate -> Activate
{
"Version": "2017-11-30",
"Statement":[
{
"Effect": "Allow",
"Action": [
"iot:*",
"greengrass:*"
],
"Resource": [
"*"
]
}
]
}
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Authorize Greengrass to deploy to Edge
/greengrass/servicerole
AWS Greengrass Service
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Greengrass Lambda authorization
/greengrass/groups/GroupId/role
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Greengrass: Edge operations
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Greengrass Core: server certificate
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Greengrass Core: certificate lifecycle
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Greengrass Core: discoverability
aws greengrass update-connectivity-info --thing-name "<CoreThingName>" --connectivity-info '[
{
"Id": "<ConnectivityInfoElementId>",
"HostAddress": "<CoreEndpoint>",
"PortNumber": <port>,
"Metadata": "<description>”
}]'
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Discover Greengrass Core
…
"Connectivity": [
{
"hostAddress": "core-01-address",
"portNumber": core-01-port,
"metadata": "core-01-description”
}
]
…
],
"CAs": [
"-----BEGIN CERTIFICATE---
--cert-contents---
--END CERTIFICATE-----"
]
…
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Greengrass: end-to-end security
• Greengrass Core Server Certificate
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Greengrass Security: Best Practices
•Server certificate lifetime
•Client certificate revocation
•Hard rotate root CA
•Discover often
•Scope down Group Role
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon FreeRTOS: Greengrass discovery
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Greengrass Discovery Demo
• Amazon FreeRTOS microcontroller (Arm Cortex-M4) developer board
• Greengrass Core
Greengrass
Service
1
Amazon FreeRTOS:
Developer board
Greengrass Core
2
3
4
Greengrass
discovery with
Amazon
FreeRTOS
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Device to Greengrass: code flow
Device power-on: main()
Network start-up:
vApplicationIPNetworkEventHook()
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
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Device to Greengrass: code flow
Device	power-on:	main()
1
Device-to-
Greengrass:	
code	flowNetwork	start-up:	
vApplicationIPNetworkEventHook()
2
Greengrass	Discovery
MQTT
4
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
3
5
© 2017, 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
© 2017, 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
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Key Learnings
q API for AWS Greengrass Discovery by Amazon FreeRTOS
q Decision criteria
q Crypto offload versus not
q RSA versus ECDSA
q How to build an application
q Discovery
q Lambda
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
THANK YOU!

More Related Content

What's hot

What's hot (20)

GPSBUS211-Edge Intelligence for IoT Applications
GPSBUS211-Edge Intelligence for IoT ApplicationsGPSBUS211-Edge Intelligence for IoT Applications
GPSBUS211-Edge Intelligence for IoT Applications
 
Serverless CI/CD on AWS Webinar
Serverless CI/CD on AWS WebinarServerless CI/CD on AWS Webinar
Serverless CI/CD on AWS Webinar
 
Engineering the IoT at AWS - IOT402 - re:Invent 2017
Engineering the IoT at AWS - IOT402 - re:Invent 2017Engineering the IoT at AWS - IOT402 - re:Invent 2017
Engineering the IoT at AWS - IOT402 - re:Invent 2017
 
WIN203_With Amazon EC2 for Windows Server and Thinkbox Deadline
WIN203_With Amazon EC2 for Windows Server and Thinkbox DeadlineWIN203_With Amazon EC2 for Windows Server and Thinkbox Deadline
WIN203_With Amazon EC2 for Windows Server and Thinkbox Deadline
 
IOT312_A New Generation IoT Core Platform
IOT312_A New Generation IoT Core PlatformIOT312_A New Generation IoT Core Platform
IOT312_A New Generation IoT Core Platform
 
NEW LAUNCH! Hear how the Pac-12 is using AWS Elemental MediaStore and explore...
NEW LAUNCH! Hear how the Pac-12 is using AWS Elemental MediaStore and explore...NEW LAUNCH! Hear how the Pac-12 is using AWS Elemental MediaStore and explore...
NEW LAUNCH! Hear how the Pac-12 is using AWS Elemental MediaStore and explore...
 
Secure Your Edge-to-Cloud IoT Solution with Intel and AWS - IOT337 - re:Inven...
Secure Your Edge-to-Cloud IoT Solution with Intel and AWS - IOT337 - re:Inven...Secure Your Edge-to-Cloud IoT Solution with Intel and AWS - IOT337 - re:Inven...
Secure Your Edge-to-Cloud IoT Solution with Intel and AWS - IOT337 - re:Inven...
 
SID302_Force Multiply Your Security Team with Automation and Alexa
SID302_Force Multiply Your Security Team with Automation and AlexaSID302_Force Multiply Your Security Team with Automation and Alexa
SID302_Force Multiply Your Security Team with Automation and Alexa
 
Optimizing Costs as You Scale on AWS - ENT302 - re:Invent 2017
Optimizing Costs as You Scale on AWS - ENT302 - re:Invent 2017Optimizing Costs as You Scale on AWS - ENT302 - re:Invent 2017
Optimizing Costs as You Scale on AWS - ENT302 - re:Invent 2017
 
NEW LAUNCH! AWS IoT Device Management - IOT330 - re:Invent 2017
NEW LAUNCH! AWS IoT Device Management - IOT330 - re:Invent 2017NEW LAUNCH! AWS IoT Device Management - IOT330 - re:Invent 2017
NEW LAUNCH! AWS IoT Device Management - IOT330 - re:Invent 2017
 
SecOps 2021 Today: Using AWS Services to Deliver SecOps - SID304 - re:Invent ...
SecOps 2021 Today: Using AWS Services to Deliver SecOps - SID304 - re:Invent ...SecOps 2021 Today: Using AWS Services to Deliver SecOps - SID304 - re:Invent ...
SecOps 2021 Today: Using AWS Services to Deliver SecOps - SID304 - re:Invent ...
 
SID402_An AWS Security Odyssey
SID402_An AWS Security OdysseySID402_An AWS Security Odyssey
SID402_An AWS Security Odyssey
 
Machine Learning State of the Union - MCL210 - re:Invent 2017
Machine Learning State of the Union - MCL210 - re:Invent 2017Machine Learning State of the Union - MCL210 - re:Invent 2017
Machine Learning State of the Union - MCL210 - re:Invent 2017
 
NEW LAUNCH! Introducing Amazon SageMaker - MCL365 - re:Invent 2017
NEW LAUNCH! Introducing Amazon SageMaker - MCL365 - re:Invent 2017NEW LAUNCH! Introducing Amazon SageMaker - MCL365 - re:Invent 2017
NEW LAUNCH! Introducing Amazon SageMaker - MCL365 - re:Invent 2017
 
CON318_Interstella 8888 Monolith to Microservices with Amazon ECS
CON318_Interstella 8888 Monolith to Microservices with Amazon ECSCON318_Interstella 8888 Monolith to Microservices with Amazon ECS
CON318_Interstella 8888 Monolith to Microservices with Amazon ECS
 
MCL303-Deep Learning with Apache MXNet and Gluon
MCL303-Deep Learning with Apache MXNet and GluonMCL303-Deep Learning with Apache MXNet and Gluon
MCL303-Deep Learning with Apache MXNet and Gluon
 
Enabling Big Data Computing at Pfizer with AWS Service Catalog and AWS Lambda...
Enabling Big Data Computing at Pfizer with AWS Service Catalog and AWS Lambda...Enabling Big Data Computing at Pfizer with AWS Service Catalog and AWS Lambda...
Enabling Big Data Computing at Pfizer with AWS Service Catalog and AWS Lambda...
 
SID201_IAM for Enterprises How Vanguard strikes the Balance Between Agility, ...
SID201_IAM for Enterprises How Vanguard strikes the Balance Between Agility, ...SID201_IAM for Enterprises How Vanguard strikes the Balance Between Agility, ...
SID201_IAM for Enterprises How Vanguard strikes the Balance Between Agility, ...
 
Analytics, Authentication and Data with AWS Amplify - MBL403 - re:Invent 2017
Analytics, Authentication and Data with  AWS Amplify - MBL403 - re:Invent 2017Analytics, Authentication and Data with  AWS Amplify - MBL403 - re:Invent 2017
Analytics, Authentication and Data with AWS Amplify - MBL403 - re:Invent 2017
 
NEW LAUNCH! Build your own live streaming and on-demand video service with AW...
NEW LAUNCH! Build your own live streaming and on-demand video service with AW...NEW LAUNCH! Build your own live streaming and on-demand video service with AW...
NEW LAUNCH! Build your own live streaming and on-demand video service with AW...
 

Similar to NEW LAUNCH! AWS Greengrass and Amazon FreeRTOS: Connectivity and Security at the Edge - IOT403 - re:Invent 2017

Similar to NEW LAUNCH! AWS Greengrass and Amazon FreeRTOS: Connectivity and Security at the Edge - IOT403 - re:Invent 2017 (20)

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...
 
NEW LAUNCH! Push Intelligence to the edge with Greengrass - IOT209 - re:Inven...
NEW LAUNCH! Push Intelligence to the edge with Greengrass - IOT209 - re:Inven...NEW LAUNCH! Push Intelligence to the edge with Greengrass - IOT209 - re:Inven...
NEW LAUNCH! Push Intelligence to the edge with Greengrass - IOT209 - re:Inven...
 
Security @ (Cloud) Scale Deep Dive
Security @ (Cloud) Scale Deep DiveSecurity @ (Cloud) Scale Deep Dive
Security @ (Cloud) Scale Deep Dive
 
SEC301 Security @ (Cloud) Scale
SEC301 Security @ (Cloud) ScaleSEC301 Security @ (Cloud) Scale
SEC301 Security @ (Cloud) Scale
 
GPSTEC317-From Leaves to Lawns AWS Greengrass at the Edge and Beyond
GPSTEC317-From Leaves to Lawns AWS Greengrass at the Edge and BeyondGPSTEC317-From Leaves to Lawns AWS Greengrass at the Edge and Beyond
GPSTEC317-From Leaves to Lawns AWS Greengrass at the Edge and Beyond
 
Compute at the Edge with AWS Greengrass - IOT309 - re:Invent 2017
Compute at the Edge with AWS Greengrass - IOT309 - re:Invent 2017Compute at the Edge with AWS Greengrass - IOT309 - re:Invent 2017
Compute at the Edge with AWS Greengrass - IOT309 - re:Invent 2017
 
AWS Webinar CZSK 02 Bezpecnost v AWS cloudu
AWS Webinar CZSK 02 Bezpecnost v AWS clouduAWS Webinar CZSK 02 Bezpecnost v AWS cloudu
AWS Webinar CZSK 02 Bezpecnost v AWS cloudu
 
Webinar: Arquiteturas para IoT na nuvem: segurança, conformidade, resiliência...
Webinar: Arquiteturas para IoT na nuvem: segurança, conformidade, resiliência...Webinar: Arquiteturas para IoT na nuvem: segurança, conformidade, resiliência...
Webinar: Arquiteturas para IoT na nuvem: segurança, conformidade, resiliência...
 
Innovations fueled by IoT and the Cloud
Innovations fueled by IoT and the CloudInnovations fueled by IoT and the Cloud
Innovations fueled by IoT and the Cloud
 
ML Inference at the Edge
ML Inference at the EdgeML Inference at the Edge
ML Inference at the Edge
 
Security & Compliance in the cloud
Security & Compliance in the cloudSecurity & Compliance in the cloud
Security & Compliance in the cloud
 
Building .NET-based Serverless Architectures and Running .NET Core Microservi...
Building .NET-based Serverless Architectures and Running .NET Core Microservi...Building .NET-based Serverless Architectures and Running .NET Core Microservi...
Building .NET-based Serverless Architectures and Running .NET Core Microservi...
 
STG401_This Is My Architecture
STG401_This Is My ArchitectureSTG401_This Is My Architecture
STG401_This Is My Architecture
 
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
 
透過最新的 AWS 服務在 2019 年為您的業務轉型 (Level 200)
透過最新的 AWS 服務在 2019 年為您的業務轉型 (Level 200)透過最新的 AWS 服務在 2019 年為您的業務轉型 (Level 200)
透過最新的 AWS 服務在 2019 年為您的業務轉型 (Level 200)
 
IOT308-One Message to a Million Things Done in 60 seconds with AWS IoT
IOT308-One Message to a Million Things Done in 60 seconds with AWS IoTIOT308-One Message to a Million Things Done in 60 seconds with AWS IoT
IOT308-One Message to a Million Things Done in 60 seconds with AWS IoT
 
DEV325_Application Deployment Techniques for Amazon EC2 Workloads with AWS Co...
DEV325_Application Deployment Techniques for Amazon EC2 Workloads with AWS Co...DEV325_Application Deployment Techniques for Amazon EC2 Workloads with AWS Co...
DEV325_Application Deployment Techniques for Amazon EC2 Workloads with AWS Co...
 
Getting Started with AWS for Developers
Getting Started with AWS for DevelopersGetting Started with AWS for Developers
Getting Started with AWS for Developers
 
RET303_Drive Warehouse Efficiencies with the Same AWS IoT Technology that Pow...
RET303_Drive Warehouse Efficiencies with the Same AWS IoT Technology that Pow...RET303_Drive Warehouse Efficiencies with the Same AWS IoT Technology that Pow...
RET303_Drive Warehouse Efficiencies with the Same AWS IoT Technology that Pow...
 
Use Amazon Rekognition to Build a Facial Recognition System
Use Amazon Rekognition to Build a Facial Recognition SystemUse Amazon Rekognition to Build a Facial Recognition System
Use Amazon Rekognition to Build a Facial Recognition System
 

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
 

NEW LAUNCH! AWS Greengrass and Amazon FreeRTOS: Connectivity and Security at the Edge - IOT403 - re:Invent 2017

  • 1. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Greengrass and Amazon FreeRTOS C o n n e c t i v i t y a n d S e c u r i t y a t t h e E d g e N o v e m b e r 3 0 , 2 0 1 7 A W S r e : I n v e n t Shyam Krishnamoorthy Senior Manager, Amazon FreeRTOS Jimi Shah Software Development Manager, AWS Greengrass Dan Griffin Senior Software Engineer, Amazon FreeRTOS
  • 2. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Agenda q Introduction to AWS Greengrass and Amazon FreeRTOS q Scenario: Enabling innovation at the edge of IoT q Making it work q AWS Greengrass q Amazon FreeRTOS q Demo q Q&A
  • 3. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. The Three Pillars of IoT
  • 4. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. The Three Pillars of IoT
  • 5. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS IoT Core – Last Week AWS IoT Messages Device Gateway Messages Applications Device Shadow Message Broker API Registry Messages Messages Rules Engine AWS Services Analytics Amazon Kinesis Artificial Intelligence Amazon EMR Messaging Amazon SQS Amazon SNS Database Amazon Redshift Amazon DynamoDB Manage Amazon CloudWatch
  • 6. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. The Three Pillars of IoT
  • 7. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS IoT Core – This Week
  • 8. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Benefits of AWS IoT The AWS IoT Core platform enables you: To securely connect devices to the AWS Cloud and other devices at scale To route, process and act upon data from these devices To enable applications to interact with devices even when they are offline To fully integrate with other AWS service to reason on top of the data (Analytics, Databases, AI, etc.)
  • 9. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. The Three Pillars of IoT
  • 10. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Greengrass AWS Greengrass is software that lets you run local compute, messaging, data caching, and sync capabilities for connected devices in a secure way. With AWS Greengrass, connected devices can run AWS Lambda functions, keep device data in sync, and communicate with other devices securely – even when not connected to the Internet.
  • 11. © 2017, 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
  • 12. © 2017, 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
  • 13. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon FreeRTOS Amazon FreeRTOS is an IoT microcontroller operating system that makes small, low powered edge devices easy to program, deploy, secure, maintain, and connect.
  • 14. © 2017, 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 #1 Real-Time Operating System for microcontrollers Broad ecosystem of hardware and tools Faster time-to-market Minimize complexity Reduce cost Free and Open Source No commitments
  • 15. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. A modular architecture, driving faster time to market
  • 16. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Scenario: Innovation at the Edge of IoT
  • 17. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Scenario: Innovation at the Edge of IoT Amazon SNS AWS IoT Core AWS Greengrass Service Greengrass Core Zone Controller
  • 18. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Greengrass: Cloud operations
  • 19. Connect to AWS IoT/Greengrass Greengrass/config/config.json { "coreThing": { … "iotHost":"[HOST].iot.[REGION].amazonaws.com", "ggHost":"greengrass.iot.[REGION].amazonaws.com", }, "runtime": { "cgroup": { … } } }
  • 20. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Authenticate with AWS IoT IoT cloud certificate Greengrass client certificate AWS IoT -> Create Thing -> Security -> Create Certificate -> Activate { "Version": "2017-11-30", "Statement":[ { "Effect": "Allow", "Action": [ "iot:*", "greengrass:*" ], "Resource": [ "*" ] } ] }
  • 21. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Authorize Greengrass to deploy to Edge /greengrass/servicerole AWS Greengrass Service
  • 22. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Greengrass Lambda authorization /greengrass/groups/GroupId/role
  • 23. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Greengrass: Edge operations
  • 24. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Greengrass Core: server certificate
  • 25. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Greengrass Core: certificate lifecycle
  • 26. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Greengrass Core: discoverability aws greengrass update-connectivity-info --thing-name "<CoreThingName>" --connectivity-info '[ { "Id": "<ConnectivityInfoElementId>", "HostAddress": "<CoreEndpoint>", "PortNumber": <port>, "Metadata": "<description>” }]'
  • 27. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Discover Greengrass Core … "Connectivity": [ { "hostAddress": "core-01-address", "portNumber": core-01-port, "metadata": "core-01-description” } ] … ], "CAs": [ "-----BEGIN CERTIFICATE--- --cert-contents--- --END CERTIFICATE-----" ] …
  • 28. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Greengrass: end-to-end security • Greengrass Core Server Certificate
  • 29. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Greengrass Security: Best Practices •Server certificate lifetime •Client certificate revocation •Hard rotate root CA •Discover often •Scope down Group Role
  • 30. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon FreeRTOS: Greengrass discovery
  • 31. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Greengrass Discovery Demo • Amazon FreeRTOS microcontroller (Arm Cortex-M4) developer board • Greengrass Core Greengrass Service 1 Amazon FreeRTOS: Developer board Greengrass Core 2 3 4 Greengrass discovery with Amazon FreeRTOS
  • 32. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Device to Greengrass: code flow Device power-on: main() Network start-up: vApplicationIPNetworkEventHook() 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
  • 33. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Device to Greengrass: code flow Device power-on: main() 1 Device-to- Greengrass: code flowNetwork start-up: vApplicationIPNetworkEventHook() 2 Greengrass Discovery MQTT 4 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 3 5
  • 34. © 2017, 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
  • 35. © 2017, 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
  • 36. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Key Learnings q API for AWS Greengrass Discovery by Amazon FreeRTOS q Decision criteria q Crypto offload versus not q RSA versus ECDSA q How to build an application q Discovery q Lambda
  • 37. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. THANK YOU!