• AWS IoT can ingest device data
  • Amazon Kinesis Data Firehose to archive data
  • Kinesis Data Analytics to compute metrics in real-time
  • Amazon S3 and Amazon DynamoDB to durably store metric data.

Kinesis Data Analytics

  • It has Device monitoring dashboard – It loads data from DynamoDB into line charts every 10 seconds and bar charts every minute.
  • Kinesis data analytics application – solution includes Amazon Kinesis Data Analytics application with SQL statements to compute metrics for built-in dashboard.
  • Anomaly detection – built-in anomaly detection of Amazon Kinesis.

IoT Analytics

  • is a fully-managed IoT analytics service
  • IoT device data at scale, can be
    • collected
    • pre-processed
    • enriched
    • stored
    • analyzed
  • can perform ad hoc queries and as complex analysis
  • Useful to
    • run IoT analytics
    • understanding performance of devices
    • predicting device failures
    • machine learning
  • automatically captures and stores message timestamp for time-series analysis 
  • can enrich with device-specific metadata like device type and location using AWS IoT registry.
  • can also execute custom authored code containers.
  • fully integrated with AWS IoT Core
  • Steps for usage are
    • define a channel and select the data you want to collect
    • only store and analyze data of interest,
    • Then, configure pipelines to process data.
    • Pipelines support transformations, conditional statements, message filtering, and message enrichment using external data sources and AWS Lambda functions.
    • Then, it is stored in an IoT-optimized data store for analysis.
    • can query data using the built-in SQL query engine
  • Container data set run analysis tools and generate results by using a SQL data set as input, a Docker container with analysis tools, input and output variables, and an optional schedule trigger.

Cognito

  • identity management and sync service
  • 2 product streams
  • cognito identity pool – collection of identities
  • allows 2 roles to be associated one for authenticated user other for unauthenticated users
  • It can
    • orchestrate generation of unauthenticated identity
    • merge unauth identity into auth identity
    • merge multiple entities into one object
  • Cognito Authenticated flow: Classic or Basic / Enhanced
  • First step to Login to Web Identity provider, rest are same as unauthenticated flow.
  • Enhanced flow, communicate all time with Cognito.
  • pre-cognito auth flow, unautheticated or guest flow, simple cognito flow, enhanced cognito flow.
  • why and when to use web id provider – when you need to publish app or service to thousands of users.

Cognito Unauthenticated flow:

  • Mobile user create unauthenticated identity
  • Coginto returns OpenID Token
  • Mobile User AssumeRole with STS
  • STS validates with Cognito
  • STS returns AWS Guest credentials
  • Mobile users Write data
Menu