AWS January 2016 Webinar Series - Best Practices for Building IoT Backends with AWS IoT & AWS Lambda
AWS for IoT
-
Upload
amazon-web-services -
Category
Business
-
view
3.233 -
download
2
Transcript of AWS for IoT
AWS Deck Template
London
AWS for IoT:
Ian Rasmussen Global IoT Business DevelopmentClaudiu Pasa EMEA Mobile/IoT Business Development
Overview of AWS IoTMessage BrokerRules EngineShadowRegistry and SecurityDevice SDK AWS IoT Hardware Program
What to Expect from the Session
AWS IoT is a managed cloud service that lets connected devices easily and securely interact with cloud applications and other devices.
In this session were going to cover the functional components of aws iot then were going to introduce the aws iot hardware program (a new way for partner to build products that are connected to AWS)3
Healthcare and Life SciencesMunicipal InfrastructureSmart HomeRetailManufacturing, Logistics & Supply ChainAgricultureEducationAutomotive
Today, AWS customers are connecting physical things to the cloud in every industry imaginable
AWS is a useful IoT cloud platform because its a useful cloud platform overall.4
Industrial InternetFleet TrackingAnd Monitoring
Street LightingConnected Healthcare
DNA SequencingInstruments
EquipmentManagement
Connected Car Device
Video Monitoring
Asset and vehicleTracking
Consumer SmartDevice Electronics
IoT Initiatives Powered by AWS
Our customers are diverse, and their needs are different and evolving. 5
Amazon CognitoAmazon Mobile Analytics
Amazon SNS Mobile Push
Kinesis Recorder
DynamoDB Mapper
S3 Transfer Mgr
SQS Client
SES ClientAWS Global Infrastructure (Regions, Availability Zones, Edge Locations)
Core Building Block ServicesMobile Optimized ConnectorsMobile Optimized ServicesYour Mobile App, Game or Device AppAWS Mobile SDK, API Endpoints, Management ConsoleComputeStorageNetworkingAnalyticsDatabasesIntegrated SDK
AWS LambdaLambda FunctionsCurrent AWS Mobile Portfolio
Such services are fully integrated with the rest of AWS offering, are optimized for mobile use cases, are accessible via a single Mobile SDK and share the same scalable, on-demand, global infrastructure of all our other AWS services.
6
Customers tell us - Challenges
Many SDKs & Tools
Security & ManagementScalability
Integration with Cloud and Mobile Applications
Variety of Protocols
People & Culture
7
AWS IoT service
A significant number of customer are developing innovative POCs, some soon to be deployed in production:EnergyHome AutomationShipping / LogisticsWeather instrumentationMedical EquipmentScientific EquipmentIndustrial manufacturing and testingRetail automationCity infrastructureAgriculture and IrrigationAutomotiveRecreational equipment Security systems
IoT in beta since August 2015
Our customers are diverse, and their needs are different and evolving. 9
Assistance for elderly or disabled people living independentControl of conditions inside freezers storing vaccines, medicines and organic elementsMonitoring of conditions of patients inside hospitals and in old people's homeIntegration of desperate lab equipment to achieve the Connected LabHealth and Life Sciences
Smart City
Smart HomeEnergy and water supply consumption monitoring to obtain advice on how to save cost and resourcesSwitching on and off remotely appliances for convenience, to avoid accidents and save energyRemote Monitoring of security systemsMonitoring of parking spaces availability in the cityMonitoring of vibrations and material conditions in buildings, bridges and historical monumentsMonitoring of vehicles and pedestrian levels to optimize driving and walking routesDetection of waste levels in containers to optimize the trash collection routesKey use case
Monitoring of storage conditions along the supply chain and product tracking for traceability purposes.Enhancing Customer Experience with Omni-Channel integrationAnalytic processing to track location or activity duration (dwell) for public transport, retail locations, etc.Control of rotation of products in shelves and warehouses to automate restocking processes.
Manufacturing and LogisticsMachine auto-diagnosis and assets control.Control of temperature inside industrial and medical fridges with sensitive merchandise.Asset locationControl of temperature inside industrial and medical fridges with sensitive merchandise.Predictive maintenance, real time alarms RetailKey use case
Standard protocols to integrate with devices, machines, data sources & enterprise systems, with No Lock-in , OS neutralSecure bidirectional translation between device protocolsHorizontal scalability that auto flexes in size based on system loadQuality of Service for ensured message deliveryEase of use for developers built on modern technologiesReduction in cost and complexity for large or small deploymentsSecure
High-Performance
Cost-Effective
Familiar
Scalable
Flexible
Design Tenets of AWS IoT Service
12
AWS IoT services provide full flexibility and agility to develop your own solutionsEnd-to-end platformNo lock-in
Specialized supportLarge partner ecosystemCo-development
from Thing SDK to rules engine to machine learningstandard protocols, flexible SDK, APIs, OS neutralsubject matter solution architects and professional servicespartnerships from chip manufactures, Telcos, system integrators, while we stay hardware independentmore than 90% of our products and services roadmap is based on customer feed-back
Embedded Chip MakersAWS IoT ServicesAWS IoT Architecture & Ecosystem
SecurityRegions & Availability ZonesRules EngineAPIThing ShadowsPub / Sub BrokerSecure GatewayThings RegistryC / JavaSDKIoT DevicesAWS IoTSolutionsBusiness Applications
Big Data
Carriers and Communication Partners
14
AWS IoT service
DEVICE SDKSet of client libraries to connect, authenticate and exchange messagesMESSAGE BROKERCommunicate with devices via MQTT and HTTPAUTHENTICATIONAUTHORIZATIONSecure with mutual authentication and encryption
RULES ENGINETransform messages based on rules and route to AWS Services
AWS Services- - - - - 3P Services
SHADOWPersistent thing state during intermittent connections
APPLICATIONSAWS IoT API
REGISTRYIdentity and Management of your things
AWS IoT is a service that enables secure, bi-directional messaging between internet-connected things [examples] and the cloud [protocols]. At the core of the system is THE MESSAGE BROKER. 16
AWS IoT Message Broker
MESSAGE BROKERCommunicate with devices via MQTT and HTTP
AWS IoT is a service that enables secure, bi-directional messaging between internet-connected things [examples] and the cloud [protocols]. At the core of the system is THE MESSAGE BROKER. 17
AWS IoT Message Broker
Standard Protocol Support (no lock-in)Millions of devices and apps can connect over any protocol starting with MQTT and HTTP 1.1
Long-lived bi-directional messagesClients (Devices and Apps) can receive commands and control signals from the cloud
Secure by DefaultConnect securely via X509 Certs and TLS 1.2 Client Mutual Auth
Topic Based Architecture (lights/thing-2/color)
Highly ScalableMessage Broker
MQTTMQTT vs HTTPS:
93x faster throughput11.89x less battery to send170.9x less battery to receive50% less power to keep connected8x less network overhead
Source:OASIS standard protocol (v3.1.1)Lightweight, pub-sub, transport protocol that is useful for connected devicesMQTT is used on oil rigs, connected trucks, and many more sensitive and resource-sensitive scenarios.Customers have needed to build, maintain and scale a broker to use MQTT with cloud applicationshttp://stephendnicholas.com/archives/1217
AWS IoT Security: Authentication and Authorization
AUTHENTICATIONSecure with mutual authentication and encryptionAUTHENTICATIONAUTHORIZATIONSecure with mutual authentication and encryption
AWS IoT is a service that enables secure, bi-directional messaging between internet-connected things [examples] and the cloud [protocols]. At the core of the system is THE MESSAGE BROKER. 20
Security and Authentication/ AuthorizationSecure Communications with Things- Single API call to CreateKeysAndCertificate()- Client Generated CreateCertificateFromCSR(CSR)
Fine-grained Authorization for:Thing ManagementPub/Sub Data AccessAWS Service Access
AUTHENTICATIONAUTHORIZATIONSecure with mutual authentication and encryption
AWS IoT Rules Engine
RULES ENGINETransform messages based on rules and route to AWS Services
AWS IoT is a service that enables secure, bi-directional messaging between internet-connected things [examples] and the cloud [protocols]. At the core of the system is THE MESSAGE BROKER. 22
AWS IoT Rules Engine
Complex EvaluationsRespond to the fleet, not just a single unit. Dozens of functions() availableMultiple / Simultaneous ActionsSometimes a situation requires you to take many actions
Simple & Familiar SyntaxSQL Statement to define topic filterOptional WHERE clauseAdvanced JSON support
AWS IoT Rules Engine Actions
RULES ENGINETransform messages based on rules and route to AWS Services
AWS Services- - - - - 3P ServicesAWS Services- - - - - 3P Services
AWS IoT is a service that enables secure, bi-directional messaging between internet-connected things [examples] and the cloud [protocols]. At the core of the system is THE MESSAGE BROKER. 24
1. AWS Services(Direct Integration)Rules Engine
ActionsAWS IoT Rules Engine
LambdaSNSSQSS3KinesisDDB
RDS
Redshift
Glacier
EC23. External Endpoints(via Lambda and SNS)2. Rest of AWS(via Kinesis, Lambda, S3, and more)
Rules Engine connects AWS IoT to External Endpoints and AWS Services.
25
AWS IoT: Rules Engineevaluates inbound messages published into Icebreakertransforms and delivers to the appropriate endpoint based on business rules
Invoke a Lambda functionPut object in an S3 bucketInsert, Update, Read from a DynamoDB tablePublish to an SNS Topic Publish to a Kinesis stream
Actions
Amazon FirehoseRepublish to AWS IoT
Rules Engine
AWS IoT Rules Engine & Amazon SNSPush NotificationsApple APNS Endpoint, Google GCM Endpoint, Amazon ADM Endpoint, Windows WNS
Amazon SNS -> HTTP Endpoint (Or SMS or Email)Call HTTP based 3rd party endpoints through SNS with subscription and retry support
SNS
2
AWS IoT Rules Engine & Stream DataN:1 Inbound Streams of Sensor Data (Signal to Noise Reduction)Rules Engine filters, transforms sensor data then sends aggregate to Amazon Kinesis
Kinesis Streams to Enterprise ApplicationsSimultaneously stream processed data to databases, applications, other AWS Services
Ordered Stream
AWS IoT Rules Engine for Machine LearningAnomaly DetectionAmazon Machine Learning can feed predictive evaluation criteria to the Rules Engine
Continuous Improvement around PredicationContinuously look for outliers and re-calibrate the Machine Learning models
Send to S3Amazon Machine LearningRe-Train
AWS IoT Thing Shadow
THING SHADOWPersistent thing state during intermittent connectionsSHADOWPersistent thing state during intermittent connectionsAPPLICATIONS
AWS IoT is a service that enables secure, bi-directional messaging between internet-connected things [examples] and the cloud [protocols]. At the core of the system is THE MESSAGE BROKER. 30
AWS IoT Thing Shadow
ShadowThingReport its current state to one or multiple shadowsRetrieve its desired state from shadowMobile AppSet the desired state of a device Get the last reported state of the device Delete the shadowShadowShadow reports delta, desired and reported states along with metadata and version
AWS IoT Registry
THING REGISTRYIdentity and Management of your thingsREGISTRYIdentity and Management of your things
AWS IoT is a service that enables secure, bi-directional messaging between internet-connected things [examples] and the cloud [protocols]. At the core of the system is THE MESSAGE BROKER. 32
AWS IoT RegistryCloud alter-ego of a physical device. Persists metadata about the device.
key: value Firmware versionSerial NumbersSupport and MaintenanceReference Manual URLPart # referenceReference to external support system
AWS IoT
DEVICE SDKSet of client libraries to connect, authenticate and exchange messagesMESSAGE BROKERCommunicate with devices via MQTT and HTTPAUTHENTICATIONAUTHORIZATIONSecure with mutual authentication and encryption
RULES ENGINETransform messages based on rules and route to AWS Services
AWS Services- - - - - 3P Services
SHADOWPersistent thing state during intermittent connections
APPLICATIONSAWS IoT API
REGISTRYIdentity and Management of your things
AWS IoT is a service that enables secure, bi-directional messaging between internet-connected things [examples] and the cloud [protocols]. At the core of the system is THE MESSAGE BROKER. 34
AWS IoT to AWS Lambda
ActionsConnected Sprinkler Controller
Lambda FunctionEasily calibrate soil, vegetation, slope, sun exposure, and nozzle types.
Choose from national and personal weather stations to get the most accurate weather data available.
No one-size-fits-all experienceyou have the freedom to make adjustments over time and tune your Rachio to your unique landscape.
AWS IoT PricingCustomers only pay for what they useNo minimum fees per device
With AWS IoT, you can also deliver messages to AWS services such as Lambda, DynamoDB, Firehose, Kinesis, S3, Simple Queue Service (SQS), and Simple Notification Service (SNS). Deliveries to AWS services do not generate AWS IoT fees.
You can publish or deliver up to 512 bytes in a single message. Larger messages are metered in increments of 512 bytes. For example, a 900-byte publish would be metered as 2 messages.Prices are based on the number of messages published to AWS IoT (Publishing Cost), and the number of messages delivered by AWS IoT to devices or applications (Delivery Cost).
AWS and Amazon In IoTAWS provides the neutral building blocks for innovation, regardless of the broader Amazon business.Of course, there are areas of potential collaboration, but only at your request. Examples: Echo, Alexa, Dash
Amazon Dash Button &Dash Replenishment ServiceEcho
Official IoT Starter Kits, Powered by AWS
Official IoT Starter Kits on Variety of Platforms
Broadcom WICEDBCM4343WOn Threadx/NetxMarvell EZConnectMW302On FreeRTOSRenasas RX63NOn Micrium OSTI CC3200On TI-RTOSMicrochip WCMPIC32 PlatformIntel Edison on Yocto LinuxMediatek LinkOneon Linkit OSDragonboard 410c on UbuntuSeeeduino Arduino on openWRT Beaglebone Green on Debian
AWS IoT Always Growing Ecosystem PartnersIoT Systems IntegratorsIoT CommunicationIoT Management Platform
IoT Analytics Platform
IoT Operating Systems
Demo