SlideShare a Scribd company logo
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
20 November 2017
Building the IoT with the AWS Cloud
Ian Massingham @IanMmmm
Technology Evangelist, AWS
IoT Applications : An Early Use Case for AWS
Today, The Most Successful IoT Deployments Run On AWS
Remove Constraints & Build the IoT with AWS
Minimising Heavy Lifting with AWS IoT
1
0
10
Devices Network Security Data Smarts
Connect
at Any
Scale
Lightweight
Protocol
X509
Certificates &
TLS Encryption
DynamoDB,
Kinesis, S3
and more
Trigger AWS
Lambda
Functions
The AWS IoT Platform
Your AppThings
AWS IoT
Device
Gateway
Rules
Registry
Shadow
S3 DynamoDB Kinesis Lambda
….
AWS IoT
What Constitutes On-Premises Infrastructure?
Sensors & IoT DevicesData Centre
Infrastructure
Challenges Of Devices Living On The Edge
Round-trip latency
Intermittent connectivity
Expensive bandwidth
Programming and updating embedded software needs specialized skills
Limited to what is on the device unless you rewrite or program the device
AWS Greengrass
Embed Lambda Compute (& Other AWS Services) in Connected Devices
Available Now
Use The Same AWS Programming Model In Devices And The Cloud
AWS Greengrass: Local Compute, Messaging & Data Caching
Local
compute
Local
data caching
Secure
communications
Local
messaging
AWS Greengrass: How It Works
Built into
devices at
manufacture
Install the
Greengrass
runtime
Lambda functions
on AWS & devices
Manage from
AWS Console
Same programming
model
Local
communication
and orchestration
Amazon Greengrass: Example Use Cases
Smart Homes Agriculture Manufacturing
Building ‘Hello World’
(for IoT Developers)
Leeds IoT Meetup - Nov 2017
Turns out,
developers are creative
Sassy Ping Pong

Score Keeper
Source: https://www.hackster.io/youngd/ping-pong-showdown-eabaed
Slack-powered
Doorbell
Source:
www.theatlantic.com/notes/2016/07/make-every-
week-2-a-silent-slack-powered-doorbell/490880/
Source: http://www.andrewmcgill.me/2016/08/19/make-every-week-sweetgreen-salad-button.html
Emergency

Sweet Green Ordering
Push a button to get directions
to the right meal within your
budget. (Integrate time of day,
weather, Google Directions,
Yelp, and Stripe)
Source: https://medium.com/@_adeel/nerding-out-with-the-amazon-iot-
button-84a6e14b6b28#.ekd5hsnez
How does it work?
Invoke a Lambda function
Put object in an S3 bucket
Insert, Update, Read from a
DynamoDB table
Publish to an SNS Topic 

or Endpoint
Publish to a Kinesis stream
Kinesis Firehose > Redshift
Republish to AWS IoT
AWS IoT
All with no servers,
of course
I want to do this. Right now!
AWS IoT Button give away:
facebook.com/ian.massingham.aws
Message ‘me’, Rate a Session 💬
Session ID: IoT Leeds
HARDWAREYOU WILL(& MIGHT) NEED
• A Raspberry Pi

• Electronics Kit
• Try the SunFounder 37 modules Sensor Kit v2.0 for Raspberry Pi
3, 2, Model B+ with 40-Pin GPIO Extension Board & Jump Wires
• http://www.amazon.co.uk/dp/B014PF05ZA
• Example tutorial
• Raspberry Pi Sense Hat (optional fun)
• https://www.raspberrypi.org/products/sense-hat/
SETTING UPFOR GPIO/SENSE HAT
Your own electronics/sensor build
C (for embedded C)
http://wiringpi.com
Python Wrapper Module for WiringPI
https://github.com/WiringPi/WiringPi-Python
For the Sense Hat
Python Module
https://github.com/RPi-Distro/python-sense-hat
SETTING UPFORAWS IOT
Use the AWS Console to create your device
Download the required crypto materials & save the C header file contents with
your endpoint, cert, and key details
Download & set up your chosen AWS IoT SDK
Get them at : https://aws.amazon.com/iot/sdk/
Building the C SDK on the Raspberry Pi requires the CppUTest library from:
https://github.com/cpputest/cpputest/releases/tag/v3.6
Get started with the sample applications that come with the AWS SDKs
EXAMPLES & DEMOS
Emulating the AWS IoT Button (C++)
https://github.com/ianmas-aws/iot-button-emulator
Controlling the Sense Hat via AWS IoT Device Shadow (Python)
https://github.com/ianmas-aws/PiPyIoT
Leeds IoT Meetup - Nov 2017
Go Build, Have Fun
Ian Massingham
Technology Evangelist, AWS
IanMmmm
1.
2.
2.
3.
4.
Alert Someone:AWS IoTtoAWS Lambda to SNS
Lambda Function
AWS IoT
Rules Engine
Policy
Private Key
& Certificate
Button
Rule
SDK
AWS IoT
AWS Services
Execution
Role Policy
SNS Topic
PermissionAction
SNS Topic Subscription
Rule: “Select * from ‘iotbutton/+’
Event
Source
Function
SMS or Email
Count items or Track Usage:AWS IoTto DynamoDB to Dashboard
DynamoDB
Rules Engine
Dashboard
S3 Website
Lambda Function
Policy
Private Key
& Certificate
Button
Rule
SDK
AWS IoT
AWS Services
Execution
Role
PolicyPermissionAction
Rule: “Select * from ‘iotbutton/+’
Event
Source
FunctionDynamoDB API Gateway
Start or Stop Something : AWS IoTtoAWS Lambda to an External
Endpoint
Lambda Function
Rules Engine
Policy
Private Key
& Certificate
Thing/Device
Rule
SDK
AWS IoT AWS Services
Execution
Role Policy
External Endpoint
Permission
Rule: Select * from ‘iotbutton/+’
Action
External
API
LifX API
Thank You. Any Questions?
You can reach me via email at ianm@amazon.com
@IanMmmm

More Related Content

PDF
AWS AWSome Day Roadshow
PDF
AWS AWSome Day - Getting Started Best Practices
PDF
AWS IoT Workshop Keynote
PDF
Hashiconf AWS Lambda Breakout
PDF
AWSome Day Dublin Intro & Closing Slides
PDF
Building Better IoT Applications without Servers
PDF
AWSome Day London January 2016 Intro
PDF
Security Best Practices
AWS AWSome Day Roadshow
AWS AWSome Day - Getting Started Best Practices
AWS IoT Workshop Keynote
Hashiconf AWS Lambda Breakout
AWSome Day Dublin Intro & Closing Slides
Building Better IoT Applications without Servers
AWSome Day London January 2016 Intro
Security Best Practices

What's hot (7)

PDF
Intro Presentation at AWS AWSome Day Dublin July 2015
PDF
What's New at AWS Update for AWS User Groups
PDF
Intro Presentation at AWS AWSome Day London September 2015
PDF
Intro Presentation at AWS AWSome Day Glasgow September 2015
PDF
Introduction to the AWS Cloud from Digital Tuesday Meetup
PPTX
Introduction to Amazon Web Services (AWS)
PDF
Advanced Security Masterclass - Tel Aviv Loft
Intro Presentation at AWS AWSome Day Dublin July 2015
What's New at AWS Update for AWS User Groups
Intro Presentation at AWS AWSome Day London September 2015
Intro Presentation at AWS AWSome Day Glasgow September 2015
Introduction to the AWS Cloud from Digital Tuesday Meetup
Introduction to Amazon Web Services (AWS)
Advanced Security Masterclass - Tel Aviv Loft
Ad

Similar to Leeds IoT Meetup - Nov 2017 (17)

PDF
Getting started with AWS IoT on Raspberry Pi
PDF
사물 인터넷을 위한 AWS FreeRTOS 소개
PDF
An Overview of AWS IoT (November 2016)
PPTX
IoTSummit: Create iot devices connected or on the edge using ai and ml
PDF
사물 인터넷을 위한 AWS FreeRTOS 소개 - 트랙1, Community Day 2018 re:Invent 특집
PDF
Iot meets Serverless
PDF
AWS UG Indonesia Meetup - AWS IoT Core
PPTX
Internet of Things and Azure - DevTeach 2016
PPTX
Creator IoT Framework
PPTX
Azure iot edge and AI enabling the intelligent edge
PPTX
IoT on azure
PPTX
Web + AWS + IoT, how to
PPTX
AWS SSA Webinar 7 - Getting Started on AWS
PDF
Can we build an Azure IoT controlled device in less than 40 minutes that cost...
PPTX
An Automated Laser Pointer for Your Dog : Aws IoT & Lambda
PPTX
Machine Learning inference at the Edge
PPTX
Controlling your home with IoT Hub
Getting started with AWS IoT on Raspberry Pi
사물 인터넷을 위한 AWS FreeRTOS 소개
An Overview of AWS IoT (November 2016)
IoTSummit: Create iot devices connected or on the edge using ai and ml
사물 인터넷을 위한 AWS FreeRTOS 소개 - 트랙1, Community Day 2018 re:Invent 특집
Iot meets Serverless
AWS UG Indonesia Meetup - AWS IoT Core
Internet of Things and Azure - DevTeach 2016
Creator IoT Framework
Azure iot edge and AI enabling the intelligent edge
IoT on azure
Web + AWS + IoT, how to
AWS SSA Webinar 7 - Getting Started on AWS
Can we build an Azure IoT controlled device in less than 40 minutes that cost...
An Automated Laser Pointer for Your Dog : Aws IoT & Lambda
Machine Learning inference at the Edge
Controlling your home with IoT Hub
Ad

More from Ian Massingham (16)

PDF
Some thoughts on measuring the impact of developer relations
PDF
What's New & What's Next from AWS?
PDF
DevTalks Romania - Getting Started with AWS Lambda & the Serverless Cloud
PDF
Getting started with AWS Lambda and the Serverless Cloud
PDF
Security Best Practices: AWS AWSome Day Management Track
PDF
AWS re:Invent 2016 Day 2 Keynote re:Cap
PDF
AWS re:Invent 2016 Day 1 Keynote re:Cap
PDF
Getting Started with AWS Lambda & Serverless Cloud
PDF
AWS AWSome Day Roadshow Intro
PDF
GOTO Stockholm - AWS Lambda - Logic in the cloud without a back-end
PDF
Cost Optimisation with AWS
PDF
AWS AWSome Day London October 2015
PDF
AWSome Day Manchester 2105 - Intro/Close
PDF
Gaming in the Cloud at Playhubs Oct 2015
PDF
AWS User Group UK Meetup
PDF
AWS Update from AWS User Group UK July Meetup
Some thoughts on measuring the impact of developer relations
What's New & What's Next from AWS?
DevTalks Romania - Getting Started with AWS Lambda & the Serverless Cloud
Getting started with AWS Lambda and the Serverless Cloud
Security Best Practices: AWS AWSome Day Management Track
AWS re:Invent 2016 Day 2 Keynote re:Cap
AWS re:Invent 2016 Day 1 Keynote re:Cap
Getting Started with AWS Lambda & Serverless Cloud
AWS AWSome Day Roadshow Intro
GOTO Stockholm - AWS Lambda - Logic in the cloud without a back-end
Cost Optimisation with AWS
AWS AWSome Day London October 2015
AWSome Day Manchester 2105 - Intro/Close
Gaming in the Cloud at Playhubs Oct 2015
AWS User Group UK Meetup
AWS Update from AWS User Group UK July Meetup

Recently uploaded (20)

PPT
Teaching material agriculture food technology
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
KodekX | Application Modernization Development
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
Big Data Technologies - Introduction.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
A Presentation on Artificial Intelligence
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
cuic standard and advanced reporting.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
Teaching material agriculture food technology
MYSQL Presentation for SQL database connectivity
Chapter 3 Spatial Domain Image Processing.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
KodekX | Application Modernization Development
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Understanding_Digital_Forensics_Presentation.pptx
Big Data Technologies - Introduction.pptx
Unlocking AI with Model Context Protocol (MCP)
Agricultural_Statistics_at_a_Glance_2022_0.pdf
A Presentation on Artificial Intelligence
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
cuic standard and advanced reporting.pdf
Building Integrated photovoltaic BIPV_UPV.pdf

Leeds IoT Meetup - Nov 2017

  • 1. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 20 November 2017 Building the IoT with the AWS Cloud Ian Massingham @IanMmmm Technology Evangelist, AWS
  • 2. IoT Applications : An Early Use Case for AWS
  • 3. Today, The Most Successful IoT Deployments Run On AWS
  • 4. Remove Constraints & Build the IoT with AWS
  • 5. Minimising Heavy Lifting with AWS IoT 1 0 10 Devices Network Security Data Smarts Connect at Any Scale Lightweight Protocol X509 Certificates & TLS Encryption DynamoDB, Kinesis, S3 and more Trigger AWS Lambda Functions
  • 6. The AWS IoT Platform Your AppThings AWS IoT Device Gateway Rules Registry Shadow S3 DynamoDB Kinesis Lambda ….
  • 8. What Constitutes On-Premises Infrastructure? Sensors & IoT DevicesData Centre Infrastructure
  • 9. Challenges Of Devices Living On The Edge Round-trip latency Intermittent connectivity Expensive bandwidth Programming and updating embedded software needs specialized skills Limited to what is on the device unless you rewrite or program the device
  • 10. AWS Greengrass Embed Lambda Compute (& Other AWS Services) in Connected Devices Available Now Use The Same AWS Programming Model In Devices And The Cloud
  • 11. AWS Greengrass: Local Compute, Messaging & Data Caching Local compute Local data caching Secure communications Local messaging
  • 12. AWS Greengrass: How It Works Built into devices at manufacture Install the Greengrass runtime Lambda functions on AWS & devices Manage from AWS Console Same programming model Local communication and orchestration
  • 13. Amazon Greengrass: Example Use Cases Smart Homes Agriculture Manufacturing
  • 17. Sassy Ping Pong
 Score Keeper Source: https://www.hackster.io/youngd/ping-pong-showdown-eabaed
  • 20. Push a button to get directions to the right meal within your budget. (Integrate time of day, weather, Google Directions, Yelp, and Stripe) Source: https://medium.com/@_adeel/nerding-out-with-the-amazon-iot- button-84a6e14b6b28#.ekd5hsnez
  • 21. How does it work? Invoke a Lambda function Put object in an S3 bucket Insert, Update, Read from a DynamoDB table Publish to an SNS Topic 
 or Endpoint Publish to a Kinesis stream Kinesis Firehose > Redshift Republish to AWS IoT AWS IoT
  • 22. All with no servers, of course
  • 23. I want to do this. Right now! AWS IoT Button give away: facebook.com/ian.massingham.aws Message ‘me’, Rate a Session 💬 Session ID: IoT Leeds
  • 24. HARDWAREYOU WILL(& MIGHT) NEED • A Raspberry Pi
 • Electronics Kit • Try the SunFounder 37 modules Sensor Kit v2.0 for Raspberry Pi 3, 2, Model B+ with 40-Pin GPIO Extension Board & Jump Wires • http://www.amazon.co.uk/dp/B014PF05ZA • Example tutorial • Raspberry Pi Sense Hat (optional fun) • https://www.raspberrypi.org/products/sense-hat/
  • 25. SETTING UPFOR GPIO/SENSE HAT Your own electronics/sensor build C (for embedded C) http://wiringpi.com Python Wrapper Module for WiringPI https://github.com/WiringPi/WiringPi-Python For the Sense Hat Python Module https://github.com/RPi-Distro/python-sense-hat
  • 26. SETTING UPFORAWS IOT Use the AWS Console to create your device Download the required crypto materials & save the C header file contents with your endpoint, cert, and key details Download & set up your chosen AWS IoT SDK Get them at : https://aws.amazon.com/iot/sdk/ Building the C SDK on the Raspberry Pi requires the CppUTest library from: https://github.com/cpputest/cpputest/releases/tag/v3.6 Get started with the sample applications that come with the AWS SDKs
  • 27. EXAMPLES & DEMOS Emulating the AWS IoT Button (C++) https://github.com/ianmas-aws/iot-button-emulator Controlling the Sense Hat via AWS IoT Device Shadow (Python) https://github.com/ianmas-aws/PiPyIoT
  • 29. Go Build, Have Fun Ian Massingham Technology Evangelist, AWS IanMmmm
  • 30. 1.
  • 31. 2.
  • 32. 2.
  • 33. 3.
  • 34. 4.
  • 35. Alert Someone:AWS IoTtoAWS Lambda to SNS Lambda Function AWS IoT Rules Engine Policy Private Key & Certificate Button Rule SDK AWS IoT AWS Services Execution Role Policy SNS Topic PermissionAction SNS Topic Subscription Rule: “Select * from ‘iotbutton/+’ Event Source Function SMS or Email
  • 36. Count items or Track Usage:AWS IoTto DynamoDB to Dashboard DynamoDB Rules Engine Dashboard S3 Website Lambda Function Policy Private Key & Certificate Button Rule SDK AWS IoT AWS Services Execution Role PolicyPermissionAction Rule: “Select * from ‘iotbutton/+’ Event Source FunctionDynamoDB API Gateway
  • 37. Start or Stop Something : AWS IoTtoAWS Lambda to an External Endpoint Lambda Function Rules Engine Policy Private Key & Certificate Thing/Device Rule SDK AWS IoT AWS Services Execution Role Policy External Endpoint Permission Rule: Select * from ‘iotbutton/+’ Action External API LifX API
  • 38. Thank You. Any Questions? You can reach me via email at ianm@amazon.com @IanMmmm