Upgrade to Pro — share decks privately, control downloads, hide ads and more …

【Developers.IO 2018】IoTを実現するためのAWSのIoT系サービス:分析、...

【Developers.IO 2018】IoTを実現するためのAWSのIoT系サービス:分析、セキュリティ管理、組み込み向けサービスもあるで!

Developers.IO 2018で発表した資料です

yuji nishimura

October 04, 2018
Tweet

More Decks by yuji nishimura

Other Decks in Technology

Transcript

  1. "84͕ఏڙ͢Δ*P5αʔϏε   Ϋϥ΢υ σόΠε AWS IoT Core AWS IoT

    Device Management AWS IoT Device Defender AWS IoT Analytics Amazon FreeRTOS AWS Greengrass 安全なデバイス接続 とメッセージング 大量の デバイス管理 SWアップデート デバイスの 監査と保護 IoTデータ分析 ・データ加工 ・データ保存 ・機械学習 ・SQL ・継続監視 ・証明書不正使用 ・証明書有効期限 ・権限確認 ・グループ化 ・ジョブ機能 ・デバイス検索 ・デバイス接続 ・他サービス連携 ・証明書発行 マイコン向けOS エッジ処理 ライブラリ搭載 ・MQTT ・WiFi ・OTA update ゲートウェイ機能 ・Lambda ・MLモデル ・プロトコル変換
  2. "84͕ఏڙ͢Δ*P5αʔϏε   Ϋϥ΢υ σόΠε AWS IoT Core AWS IoT

    Device Management AWS IoT Device Defender AWS IoT Analytics Amazon FreeRTOS AWS Greengrass 安全なデバイス接続 とメッセージング 大量の デバイス管理 SWアップデート デバイスの 監査と保護 IoTデータ分析 ・データ加工 ・データ保存 ・機械学習 ・SQL ・継続監視 ・証明書不正使用 ・証明書有効期限 ・権限確認 ・グループ化 ・ジョブ機能 ・デバイス検索 マイコン向けOS エッジ処理 ライブラリ搭載 ・MQTT ・WiFi ・OTA update ゲートウェイ機能 ・Lambda ・MLモデル ・プロトコル変換 ・デバイス接続 ・他サービス連携 ・証明書発行
  3. σόΠεଆͰར༻͢Δ4%,Λఏڙ   ଟ͘ͷݴޠΛαϙʔτ "84*P5ͱ઀ଓ͢ΔαϯϓϧͳͲؚ͕·Ε͍ͯΔ AWS IoT Device SDK for

    Embedded C AWS IoT Device SDK for python AWS IoT Device SDK for Javascript AWS IoT Device SDK for Java AWS IoT C++ Device SDK AWS Mobile SDK for Android AWS Mobile SDK for iOS Arduino Yun SDK
  4.   MQTTҎ֎ͷ઀ଓํࣜΛαϙʔτ ϓϩτίϧ ೝূ ϙʔτ .255 ΫϥΠΞϯτ ূ໌ॻ ɺ

    )5514 ΫϥΠΞϯτূ໌ॻ  )5514 4JH7  .255  8FC4PDLFU 4JH7  ※SigV4ɿIAMೝূ
  5. )5514Λ࢖ͬͨ௨৴   wΫϥΠΞϯτʢσόΠεʣଆͰ1045Ͱ"84*P5ͷ"1*ʹରͯ͠ɹɹɹ ϝοηʔδΛύϒϦογϡͰ͖Δ wτϐοΫΛαϒεΫϥΠϒ͸Ͱ͖ͳ͍ͷͰ஫ҙ wΫϥΠΞϯτূ໌ॻ DVSM͕͋Ε͹ɺ"84*P5ͱ௨৴Մೳ $ curl

    --tlsv1.2 --cacert ./root.pem \ --cert ./cert.crt \ --key ./private.key \ -X POST \ -d "{ \"sensorData\":123}" \ "https://xxx.iot.us-east-2.amazonaws.com:8443/topics/test?qos=1" ྫʣτϐοΫʮtestʯʹରͯ͠σʔλΛύϒϦογϡ
  6. "84(SFFOHSBTT   "84*P5ͷػೳΛΤοδσόΠεʹ֦ுɺϩʔΧϧͰσʔλॲཧ ήʔτ΢ΣΠػثʹιϑτ΢ΣΞΛΠϯετʔϧ (SFFOHSBTT$PSF  -BNCEB͕ήʔτ΢ΣΠͰ࣮ߦͰ͖Δ ཁ݅εϖοΫ CPU:

    1GHz Ҏ্ Memɿ128MBҎ্ OSɿLinux Kernelɿ4.4Ҏ্ Τοδػث Greengrass Core Greengrass Group Greengrass Service σόΠε ϩʔΧϧ Lambda AWS IoT ػೳ AWS IoT AWSαʔϏε ࿈ܞ
  7. σόΠεͷҟৗಈ࡞Λͤ͞Δ   BXTJPUEFWJDFTELQZUIPOͷαϯϓϧΛ࣮ߦ https://dev.classmethod.jp/hardware/raspberrypi/aws-iot-device-sdk-for-python-raspberrypi-aws-iot/ $ python basicPubSub.py \ --endpoint

    "xxxx.iot.ap-northeast-1.amazonaws.com" \ -r ./rootCA.pem \ -c ./cert-devio.crt \ -k ./private-devio.key \ -id rasp σΟϨΫτϦɿaws-iot-device-sdk-python/samples/basicPubSub ίϚϯυྫ
  8. อଘͨ͠σʔλͷऔಘ   "84$-*͔Βอଘͨ࣌͠ܥྻσʔλΛ%-Ͱ͖Δ $47ܗࣜͰग़ྗ $ aws iotanalytics get-dataset-content --dataset-name

    my_dataset { "entries": [ { "dataURI": “https://<url>“ } ], "timestamp": 1538473986.346, "status": { "state": "SUCCEEDED" } }
  9. อଘͨ͠σʔλͷऔಘ   "84$-*͔Βอଘͨ࣌͠ܥྻσʔλΛ%-Ͱ͖Δ $47ܗࣜͰग़ྗ $ curl https://<get url> "thingid","temperature","humidity","datetime","__dt"

    "dht1","26","29","2018-01-26T07:06:01","2018-10-02 00:00:00.000" "dht1","27","29","2018-01-26T07:06:01","2018-10-02 00:00:00.000" "dht1","30","29","2018-01-26T07:06:01","2018-10-02 00:00:00.000" "dht1","31","29","2018-01-26T07:06:01","2018-10-02 00:00:00.000" "dht1","33","29","2018-01-26T07:06:01","2018-10-02 00:00:00.000" "dht1","21","29","2018-01-26T07:06:01","2018-10-02 00:00:00.000" "dht1","26","29","2018-01-26T07:06:01","2018-10-02 00:00:00.000" "dht1","31","29","2018-01-26T07:06:01","2018-10-02 00:00:00.000"
  10. ྫʣ༧ஹอશΛ࣮ݱ͢ΔΞʔΩςΫνϟ   ϓϩτίϧม׵ Amazon FreeRTOS Greengrass ML Inference MLϞσϧ

    ػցֶशɺϞσϧ࡞੒ IoT Core Greengrass Device Management Device Defender IoT Analytics SNS௨஌ QuickSight IoT Core
  11. ྫʣ༧ஹอશΛ࣮ݱ͢ΔΞʔΩςΫνϟ   ϓϩτίϧม׵ Amazon FreeRTOS Greengrass ML Inference MLϞσϧ

    ػցֶशɺϞσϧ࡞੒ IoT Core Greengrass Device Management Device Defender IoT Analytics SNS௨஌ QuickSight ΤοδσόΠεʹΠϯετʔϧ͞Εͨ (SFFOHSBTT͕σʔλΛऩू IoT Core
  12. ྫʣ༧ஹอશΛ࣮ݱ͢ΔΞʔΩςΫνϟ   ϓϩτίϧม׵ Amazon FreeRTOS Greengrass ML Inference MLϞσϧ

    ػցֶशɺϞσϧ࡞੒ IoT Core Greengrass Device Management Device Defender IoT Analytics SNS௨஌ QuickSight ৼಈɺԹ౓ɺΤϥʔίʔυͳͲऩूͨ͠σʔλΛ (SFFOHSBTTͰϑΟϧλϦϯάɺଳҬઅ໿ IoT Core
  13. ྫʣ༧ஹอશΛ࣮ݱ͢ΔΞʔΩςΫνϟ   ϓϩτίϧม׵ Amazon FreeRTOS Greengrass ML Inference MLϞσϧ

    ػցֶशɺϞσϧ࡞੒ IoT Core Greengrass Device Management Device Defender IoT Analytics SNS௨஌ QuickSight ඞཁͳσʔλͷΈ"84*P5΁ૹ৴ IoT Core
  14. ྫʣ༧ஹอશΛ࣮ݱ͢ΔΞʔΩςΫνϟ   ϓϩτίϧม׵ Amazon FreeRTOS Greengrass ML Inference MLϞσϧ

    ػցֶशɺϞσϧ࡞੒ IoT Core Greengrass Device Management Device Defender IoT Analytics SNS௨஌ QuickSight "84*P5ʹૹΒΕͨσʔλΛ %FWJDF%FGFOEFSͰ؂ࢹɺҟৗ͕ݕ஌͞Εͨ৔߹ɺ4/4Λ࢖ͬͯΞϥʔτ IoT Core
  15. ྫʣ༧ஹอશΛ࣮ݱ͢ΔΞʔΩςΫνϟ   ϓϩτίϧม׵ Amazon FreeRTOS Greengrass ML Inference MLϞσϧ

    ػցֶशɺϞσϧ࡞੒ IoT Core Greengrass Device Management Device Defender IoT Analytics SNS௨஌ QuickSight *P5σʔλΛ*P5"OBMZUJDTʹσʔλΛૹ৴͠ɺσʔλΛ஝ੵ IoT Core
  16. ྫʣ༧ஹอશΛ࣮ݱ͢ΔΞʔΩςΫνϟ   ϓϩτίϧม׵ Amazon FreeRTOS Greengrass ML Inference MLϞσϧ

    ػցֶशɺϞσϧ࡞੒ IoT Core Greengrass Device Management Device Defender IoT Analytics SNS௨஌ QuickSight #*αʔϏεͷ2VJDL4JHIUͱ࿈ܞͯ͠ɺ ઃඋͷঢ়ଶΛμογϡϘʔυԽ IoT Core
  17. ྫʣ༧ஹอશΛ࣮ݱ͢ΔΞʔΩςΫνϟ   ϓϩτίϧม׵ Amazon FreeRTOS Greengrass ML Inference MLϞσϧ

    ػցֶशɺϞσϧ࡞੒ IoT Core Greengrass Device Management Device Defender IoT Analytics SNS௨஌ QuickSight 4BHF.BLFS͕*P5"OBMZUJDTͷσʔλΛ࢖ͬͯ ނো༧஌ɺ༧ଌ͢ΔϞσϧΛ࡞੒ IoT Core
  18. ྫʣ༧ஹอશΛ࣮ݱ͢ΔΞʔΩςΫνϟ   ϓϩτίϧม׵ Amazon FreeRTOS Greengrass ML Inference MLϞσϧ

    ػցֶशɺϞσϧ࡞੒ IoT Core Greengrass Device Management Device Defender IoT Analytics SNS௨஌ QuickSight .-*OGFSFODFΛ࢖ͬͯ ΤοδσόΠεʹ.-ϞσϧΛσϓϩΠ IoT Core
  19. ྫʣ༧ஹอશΛ࣮ݱ͢ΔΞʔΩςΫνϟ   ϓϩτίϧม׵ Amazon FreeRTOS Greengrass ML Inference MLϞσϧ

    ػցֶशɺϞσϧ࡞੒ IoT Core Greengrass Device Management Device Defender IoT Analytics SNS௨஌ QuickSight ࣮ࡍʹऩूͨ͠σʔλʹ.-ϞσϧΛద༻ͯ͠ɺ ਪ࿦Λߦ͏ IoT Core
  20. ྫʣ༧ஹอશΛ࣮ݱ͢ΔΞʔΩςΫνϟ   ϓϩτίϧม׵ Amazon FreeRTOS Greengrass ML Inference MLϞσϧ

    ػցֶशɺϞσϧ࡞੒ IoT Core Greengrass Device Management Device Defender IoT Analytics SNS௨஌ QuickSight ࣮ࢪ݁ՌΛΫϥ΢υʹૹ৴ͯ͠ɺ ܁Γฦ͠ɺਫ਼౓Λ޲্ͤ͞Δ IoT Core