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

SORACOM Kryptonのありがたみを感じてみる

SORACOM Kryptonのありがたみを感じてみる

SORACOM UG 九州 #5

A9f8382f6cdd535370c723eba233a8f7?s=128

Keita Mohri

August 24, 2018
Tweet

More Decks by Keita Mohri

Other Decks in Technology

Transcript

  1. 403"$0.,SZQUPOͷ ͋Γ͕ͨΈΛײͯ͡ΈΔ SORACOM UG ۝भ#5 2018/08/24 גࣜձࣾFusic ໟར ܒଠ

  2. ࣗݾ঺հ ໟརܒଠʢ΋͏Γ͚͍ͨʣ  'VTJD$P -UE  ɹɹɹɹɹɹൃҊऀϓϩμΫτΦʔφʔ  *P5ܥͷडୗҊ݅ 

    લ৬͸ ༯ոͱ͔Ͱ༗໊ͳ ๭ήʔϜձࣾ
  3. ,ͱ- ग़·ͨ͠Ͷ

  4. None
  5. ,SZQUPOʜ

  6. ͍͢͝αʔϏεͳͷʹʜ

  7. ࠓ೔͸ɺ ,SZQUPOͷ͋Γ͕ͨΈΛײͯ͡Έ·͢

  8. ͋ͳͨ͸ɺͱΜͰ΋ͳ͘ૉ੖Β͍͠IoTͷΞΠσΞΛࢥ͍͖ͭ·ͨ͠ PoC΋ॱௐʹऴ͑ɺσόΠεΛྔ࢈͠Α͏ͱߟ͍͑ͯ·͢ ͱΜͰ΋ͳ͘ૉ੖Β͍͠ͷͰɺσόΠεͷॳճੜ࢈਺͸1ສ୆Ͱ͢ όοΫΤϯυʹ͸AWS IoT CoreΛ࢖͓͏ͱߟ͍͑ͯ·͢ ͕ɺ͍͟ྔ࢈͠Α͏ͱ͢Δͱ͋ΔนʹͿ͔ͭΓ·ͨ͠

  9. Ͳ͏΍ͬͯ σόΠεূ໌ॻΛ࣋ͨͤΑ͏ ʘ ?P? ʗ

  10. ͋ͬɺ"84͔Βͷܒ͕ࣔʂ

  11. "84#MBDL#FMU0OMJOF4FNJOBS"84*P5ʹ͓͚ΔσόΠε؅ཧ https://image.slidesharecdn.com/20180327blackbeltdevicemanagement-180328095254/95/20180327-aws-black-belt-online-seminar-aws-iot-15-638.jpg?cb=1522294331

  12. "84*P5$PSFʹΑΔূ໌ॻൃߦ AWS IoT CoreͰূ໌ॻΛ͋Β͔͡Ίͨ͘͞Μൃߦ͓͖ͯ͠ɺ
 σόΠε੡଄࣌ʹݸผʹূ໌ॻΛຒΊࠐΉ ݸผͷσʔλຒΊࠐΈʹੜ࢈ϥΠϯ͕ରԠ͍ͯ͠Δඞཁ͕͋Δ ࣄલʹূ໌ॻΛൃߦ͢ΔͷͰɺূ໌ॻͷൃߦݖݶͷ؅ཧͩͬͨΓɺσόΠε ૿࢈࣌ͷ௥ՃൃߦϑϩʔͳͲ΋ܾΊͶ͹ ূ໌ॻͷ໊લ͕ϥϯμϜͳจࣈྻͳͷͰɺͲͷূ໌ॻ͕ͲͷσόΠεʹೖͬͯ ͍Δ͔Λ؅ཧ͢Δͷ΋ͪΐͬͱେม

  13. ࣋ͪࠐΈ$"ʹΑΔূ໌ॻൃߦ 1.ͷূ໌ॻͷൃߦํ๏ΛࣗલೝূہʹΑΔൃߦʹͨ͠΋ͷ ࣗલೝূہΛ༻ҙ͢Δඞཁ͕͋Δ ূ໌ॻͷظݶͷίϯτϩʔϧ͕Ͱ͖Δ఺͕ϝϦοτ

  14. +VTUJOUJNFSFHJTUSBUJPO AWS IoT Coreʹ༻ҙ͞Ε͍ͯΔػೳ AWS IoT CoreʹࣗલೝূہΛ͋Β͔͡Ίొ࿥͓ͯ͘͠ͱɺͦͷೝূہͰൃߦ͞Εͨະ ొ࿥ͷূ໌ॻͰͷΞΫηε͕དྷͨ৔߹ʹಛఆͷtopicʹϝοηʔδΛPublishͯ͘͠ΕΔ ͜ͷϝοηʔδΛSubscribe͠ɺূ໌ॻΛొ࿥͢Ε͹ɺ1.΍2.ͷΑ͏ʹ͋Β͔͡Ίσό ΠεͱAWS

    IoT CoreΛඥ͚͓ͮͯ͘ඞཁ͕ͳ͘ͳΔ ͨͩ͠ɺࣗલೝূہͷ༻ҙ͕ඞཁͰ͢͠ɺϝοηʔδΛSubscribeͯ͠ূ໌ॻΛొ࿥ ͢Δػߏ΋LambdaͳͲΛ࢖ͬͯࣗલͰߏங͢Δඞཁ͕͋Δ
  15. +VTUJOUJNFSFHJTUSBUJPO https://image.slidesharecdn.com/20180327blackbeltdevicemanagement-180328095254/95/20180327-aws-black-belt-online-seminar-aws-iot-12-638.jpg?cb=1522294331

  16. #PPUTUSBQQJOH σόΠεͷॳճىಈ࣌ʹಛఆͷAPIΛୟ͘ͳͲͯ͠ূ໌ॻΛऔಘ͢Δύλʔϯ ΋ͪΖΜͦͷAPI͸ࣗલͰ༻ҙ͢Δඞཁ͕͋Δ ୭Ͱ΋ͦͷAPIΛݺ΂ͯ͠·ͬͨΒࠔΔͷͰɺAPIΛݺͼग़͢ݖݶΛσόΠε ʹ࣋ͨͤͯ…͋Εʁͦͷݖݶ͸Ͳ͏΍ͬͯʜ ʮੜ࢈ݱ৔ͱCloudͰͲ͏ͯ͠΋࿈ܞ͕೉͍͠৔߹ͷखஈʯͱ͋ΔͷͰɺ
 ͋·ΓΦεεϝͰ͸ͳ͍ͱࢥΘΕΔ

  17. d·ͰݟͯΈ͚ͨͲɻɻ ͲΕ΋ͪΐͬͱख͕͔͔ؒΔΑ͏ͳҹ৅ɻɻ AWSͷཱ৔͔Β͢Δͱɺਖ਼نσόΠε͔ΒͷΞΫηεͱ߈ܸऀ͔ΒͷΞ Ϋηεͷݟ෼͚͕͔ͭͳ͍ͷͰɺσόΠεଆʹԿ͔͠Βূ໌ͯ͠΋Β͏ ΋ͷΛೖΕͯ΋Β͏ඞཁ͕͋Δ ͳͷͰͲ͏ͯ͠΋εοΩϦͨ͠ܗʹͰ͖ͳ͍ͷͰ͸ͳ͍͔

  18. ͦ͜Ͱ,SZQUPO!

  19. 4. AWS IoT Coreʹ઀ଓ 0. AWSͷೝূ৘ใ, AWS IoT Coreͷ৘ใΛઃఆ Device

    AWS IoT Core 1. ॳظઃఆΛϦΫΤετ 2. ॳظઃఆΛ୅ߦ 3. ূ໌ॻΛฦ͢
  20. ΍ͬͯΈͨʂ AWS IoT CoreͰϙϦγʔΛ࡞੒ AWS IoT CoreͰͷূ໌ॻൃߦݖݶΛ࣋ͬͨIAMϢʔβʔΛ࡞੒ SORACOMίϯιʔϧͰIAMϢʔβʔͷΫϨσϯγϟϧΛొ࿥ SIMͷάϧʔϓʹKryptonͷઃఆΛߦ͏ AWS

    IoT Coreؔ࿈ͷ৘ใɺThing NameύλʔϯͳͲ
  21. ΍ͬͯΈͨʂ $ curl -X POST https://krypton.soracom.io:8036/v1/provisioning/aws/iot/bootstrap

  22. ΍ͬͯΈͨʂ ͪΌΜͱThing΋Ͱ͖ͯΔʂ

  23. ,SZQUPO͍͢͝ 4.BootstrappingΛϕʔεʹ͍ͯ͠Δ SORACOMͷAir SIM͸ͦΕͧΕݸผͷ৘ใΛ͍࣋ͬͯΔͨΊɺ
 SIMΛૠ͍ͯ͠Δ͚ͩͰਖ਼نͷσόΠεͰ͋Δ͜ͱΛূ໌Ͱ͖Δ ͦͷͨΊɺσόΠεࣗମʹࣝผ৘ใΛ࣋ͨͤͳͯ͘΋ಊʑͱAWS IoT Core ʹূ໌ॻͷൃߦΛґཔͰ͖Δʂ ·͞ʹSORACOMͷڧΈΛ׆͔ͨ͠αʔϏεʂ

  24. ·ͱΊ

  25. KryptonΛ࢖͑͹໘౗ͳ͜ͱ͸Ұ੾ͳ͠ʂ ྫͷͱΜͰ΋ͳ͘ૉ੖Β͍͠IoTαʔϏε΋ແࣄσόΠεΛྔ࢈Ͱ͖ͦ͏ KryptonͷྗͰIoTࢢ৔ͷ੒௕͕Ճ଎͢Δײ͕͋Δʂ

  26. ͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ ΋͓ئ͍͠·͢ʂ