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

ビットキーのIoT基盤における AWS IoT Rule Action 活用

ビットキーのIoT基盤における AWS IoT Rule Action 活用

More Decks by 株式会社ビットキー / Bitkey Inc.

Other Decks in Technology

Transcript

  1. ࠤʑ໦ྃ 3ZP4BTBLJ     ๭௨৴ܥ4*FSೖࣾ ɾݩʑ͸/8ΤϯδχΞͩͬͨͷͰ#(1࢖ͬͨଞڌ఺/8࡞ͬͨΓͱ͔ ɾ࣏ࣗମͱ͔׭ެிܥγεςϜʹܞΘͬͨΓ͢Δ͜ͱ͕ଟ͔͔ͬͨͳ ɾڮྊ఺ݕϩϘοτ։ൃ΍ͬͨΓͱ͔

    ϑϦʔϥϯεʹస޲ ɾϖωτϨʔγϣϯςετ΍ͬͨΓͱ͔ ɾ0QFO4UBULͱ0QFO4IJGU݁ߏ΍ͬͯͨΓͱ͔ ɾϋΠϒϦουΫϥ΢υ࡞ͬͨΓͱ͔ ɾ޻ࣄݱ৔%9ͷαʔϏε࡞ͬͯӡӦͨ͠Γͱ͔ ɾ)8ελʔτΞοϓͷϓϩτλΠϐϯά΍ͬͨΓͱ͔   ϏοτΩʔʹδϣΠϯ 68#Ͱ༡ΜͰ·͢ɻ ଜా੡࡞ॴ͞Μͷ 
 5ZQF#1ධՁΩοτ͓͢͢Ίʂ IUUQTXXXNVSBUBDPNKBKQQSPEVDUT DPOOFDUJWJUZNPEVMFVMUSBXJEFCBOEOYQUZQFCQ
  2. 

  3.  ϏοτΩʔͷ*P5ΞʔΩςΫνϟ ˔ ͦΕͧΕͷΫϥ΢υϓϥοτϑΥʔϜʹ͸ಘखෆಘख͕͋Δ ˓ ͜ͷྖҬ͸ͬͪ͜ͷ΄͏͕ѻ͍΍͍͢ΑͶɺͱ͔ɺઌਐతͩΑͶɺͱ͔ ˔ ԼखʹͭͷΫϥ΢υʹͩ͜Θͬͯۤख෼໺ΛͦͷதͰؤுΔΑΓ͸ɺ 
 ͏·͍۩߹ʹͦΕͧΕΛ૊Έ߹ΘͤΔ΄͏͕࠷ળʹ͚ۙͮΔ͸ͣ

    ˓ ࣄۀΛര଎Ͱ੒௕ͤ͞ͳ͍ͱ͍͚ͳ͍࣌ظʹ͓͍ͯɺ 
 ΦʔϧΠϯϫϯͳ($1ͷ'JSFCBTF͸։ൃ଎౓ͷ఺Ͱେมັྗతͩͬͨ ˓ ҰํͰ($1͸Ͳ͏ͯ͠΋*P5ྖҬ͕ऑ͔ͬͨ ˓ ͜ͷ෦෼Ͱ͸໌Β͔ʹ"84ͷ΄͏͕Ұ೔ͷ௕͕͋ͬͨ
  4.  ϏοτΩʔͷ*P5ΞʔΩςΫνϟ ˔ ͦΕͧΕͷΫϥ΢υϓϥοτϑΥʔϜʹ͸ಘखෆಘख͕͋Δ ˓ ͜ͷྖҬ͸ͬͪ͜ͷ΄͏͕ѻ͍΍͍͢ΑͶɺͱ͔ɺઌਐతͩΑͶɺͱ͔ ˔ ԼखʹͭͷΫϥ΢υʹͩ͜Θͬͯۤख෼໺ΛͦͷதͰؤுΔΑΓ͸ɺ 
 ͏·͍۩߹ʹͦΕͧΕΛ૊Έ߹ΘͤΔ΄͏͕࠷ળʹ͚ۙͮΔ͸ͣ

    ˓ ࣄۀΛര଎Ͱ੒௕ͤ͞ͳ͍ͱ͍͚ͳ͍࣌ظʹ͓͍ͯɺ 
 ΦʔϧΠϯϫϯͳ($1ͷ'JSFCBTF͸։ൃ଎౓ͷ఺Ͱେมັྗతͩͬͨ ˓ ҰํͰ($1͸Ͳ͏ͯ͠΋*P5ྖҬ͕ऑ͔ͬͨ ˓ ͜ͷ෦෼Ͱ͸໌Β͔ʹ"84ͷ΄͏͕Ұ೔ͷ௕͕͋ͬͨ ͜ͷ͋ͨΓ͸ࠓճ͸ׂѪ
  5.  "1* ϏοτΩʔͷ*P5ΞʔΩςΫνϟ $MPVE -PBE 
 #BMBODJO H $MPVE 3VO

    $MPVE 
 'VODUJPO T %BUBCBTF "MMPZ%# 'JSFTUPSF $POUFOUT $MPVE 
 4UPSBHF GSPOUFOEʢ41"ʣ 'JSFCBTF IPTUJOH 36. -PHT EEBHFOU $MPVE 3VO "1. -PHHJOH &SSPS5SBDLJOH .POJUPS #-& #-& #-&
  6.  "1* ϏοτΩʔͷ*P5ΞʔΩςΫνϟ $MPVE -PBE 
 #BMBODJO H $MPVE 3VO

    $MPVE 
 'VODUJPO T %BUBCBTF "MMPZ%# 'JSFTUPSF $POUFOUT $MPVE 
 4UPSBHF GSPOUFOEʢ41"ʣ 'JSFCBTF IPTUJOH 36. -PHT EEBHFOU $MPVE 3VO "1. -PHHJOH &SSPS5SBDLJOH .POJUPS #-& #-& #-& ७ਮͳ*P5ϨΠϠʔ͸ ͚ͩ͜͜
  7.  ˔ ֤छίϚϯυͷ΍ΓͱΓΛ୅ߦ ˔ ϩά΍όοςϦʔมԽͷϦΞϧλΠϜͳ௨஌ *P5$PSF #-& .255 -BNCEB -BNCEB

    "1*(BUFXBZ ίϚϯυ࣮ߦ ϦΞϧλΠϜ௨஌ ϏοτΩʔͷ*P5ΞʔΩςΫνϟ
  8.  ՝୊ ສ͕ҰͷεύΠΫରࡦ ˔ Ԧಓ͸*P5$PSF -BNCEBͳαʔόʔϨεͳख๏ ˔ -BNCEBͷ৔߹τϥϑΟοΫ͕εύΠΫͨ͠ͱ͖ʹ 
 εϩοτϦϯά͢ΔՄೳੑ͕͋Δ

    ˓ ॳظ஋ ϏοτΩʔͷ৔߹ͪΐͬͱͰ΋ෛՙ͔͔Ε͹؆୯ʹ௒͑Δ  ˓ ਃ੥ʹΑΓൺֱతָͪΜʹ؇࿨Մೳ
  9.  ˔ *P5σʔλॲཧύΠϓϥΠϯͷى఺ͱͯ͠େม༏ल ˔ *P5$PSFͷதΛྲྀΕΔ.255ϝοηʔδʹରͯ͠ ˓ ΫΤϦΛॻ͍ͯͻ͔͚ͬͯ ˓ Կ͔ͷΞΫγϣϯ 

    Λͤ͞ΒΕΔ ˔ ͜ͷػೳࣗମ͸ׂͱ༗໊ ˓ ಛఆͷτϐοΫʹϝοηʔδ͕ྲྀΕͨΒ 
 -BNCEB͕ൃՐͯͦ͠ͷϝοηʔδΛՃ޻ͯ͠Ͳ͏ͷ͜͏ͷ 3VMF"DUJPOʹΑΔղܾΞϓϩʔν *P53VMF"DUJPOͱ͸ Ԧಓύλʔϯ
  10.  ˔ *P5σʔλॲཧύΠϓϥΠϯͷى఺ͱͯ͠େม༏ल ˔ *P5$PSFͷதΛྲྀΕΔ.255ϝοηʔδʹରͯ͠ ˓ ΫΤϦΛॻ͍ͯͻ͔͚ͬͯ ˓ Կ͔ͷΞΫγϣϯ 

    Λͤ͞ΒΕΔ ˔ ͜ͷػೳࣗମ͸ׂͱ༗໊ ˓ ಛఆͷτϐοΫʹϝοηʔδ͕ྲྀΕͨΒ 
 -BNCEB͕ൃՐͯͦ͠ͷϝοηʔδΛՃ޻ͯ͠Ͳ͏ͷ͜͏ͷ 3VMF"DUJPOʹΑΔղܾΞϓϩʔν *P53VMF"DUJPOͱ͸ Ԧಓύλʔϯ ͦΕ͚ͩ͡Ό΋͍ͬͨͳ͍ʂʂ
  11.  ˔ ϝοηʔδΛࣗಈతʹύʔεͯ͠%ZOBNP%#ʹ165͢Δ ˔ 4ʹอଘ͢Δ ˔ ֎෦ͷ)551"1*Λୟ͘ ˔ σʔλΛͪΐͬ͜ͱՃ޻ͯ͠3F1VCMJTIͤ͞Δ ˔

    ,JOFTJTʹͭͳ͛Δ ˔ Ͳ͔͜ʹ4/4௨஌Λ౤͛Δ શ෦3VMF"DUJPOʹΑͬͯ -BNCEBͳ͠Ͱग़དྷΔΑʂ 3VMF"DUJPOʹΑΔղܾΞϓϩʔν *P53VMF"DUJPOͱ͸
  12.  ˔ ϝϦοτ ˓ ߴ౓ͳϓϩάϥϛϯά͕ෆཁ ˓ -BNCEBͳͲͷ'BB4Λ΋্ճΔεέʔϦϯάੑೳ ˓ ര҆ ࢀߟIUUQTBXTBNB[PODPNKQJPUDPSFQSJDJOH

     ˔ σϝϦοτ ˓ ϩʔΧϧͰࢼͮ͠Β͍ ˓ ϩά͕ΊͪΌͪ͘ΌΘ͔ΓͮΒ͍ ˙ ΑͬͯԿ͔໰୊͕͋ͬͨͱͯ͠΋ɺͦΕʹؾͮ͘ͷ͕ࢸ೉ͷۀ 3VMF"DUJPOʹΑΔղܾΞϓϩʔν *P53VMF"DUJPOͷϝϦσϝ 3VMF"DUJPO -BNCEB 3VMF"DUJPO୯ಠʹͳΔ Μ͔ͩΒͦΓΌ͍҆
  13.  3VMF"DUJPOʹΑΔղܾΞϓϩʔν ։࢝͞Εͨϧʔϧ64% τϦΨʔ͞Εͨϧʔϧສ݅͋ͨΓద༻͞ΕͨΞΫγϣϯສ݅͋ͨΓ  ద༻͞ΕͨΞΫγϣϯ64% τϦΨʔ͞Εͨϧʔϧສ݅͋ͨΓద༻͞ΕͨΞΫγϣϯສ݅͋ͨΓ  ϧʔϧͱΞΫγϣϯ͸ɺϝοηʔδαΠζ,#୯ҐͰܭࢉ͞Ε·͢ɻྫ͑͹ɺ,#ͷϝοηʔδΛॲཧ͠ɺԿ΋ΞΫγϣϯΛద༻͠ͳ͍ ϧʔϧ͸ɺͭͷϧʔϧͱͭͷΞΫγϣϯͱͯ͠ଌఆ͞Ε·͢ɻ·ͨɺ,#ͷϝοηʔδΛॲཧ͠ɺͭͷΞΫγϣϯΛద༻͢Δϧʔϧ

    ͸ɺͭͷϧʔϧͱͭͷΞΫγϣϯͱͯ͠ଌఆ͞Ε·͢ɻϦʔδϣϯ֎͔Βͷಛఆͷϧʔϧ͔Βʮग़͠ʯʮೖΕʯ͢Δσʔλͷసૹ͸ɺ ͪ͜ΒͷʮσʔλసૹʯʹϦετ͞Ε͍ͯΔ"NB[PO&MBTUJD$PNQVUF$MPVE "NB[PO&$ σʔλసૹྉ͕ۚ՝ۚ͞Ε·͢ɻ ϧʔϧΤϯδϯͰEFDPEF ؔ਺Λ࢖༻ͯ͠ɺΤϯίʔυ͞Εͨ1SPUPDPM#VGGFS 1SPUPCVG ϝοηʔδΛ+BWB4DSJQU0CKFDU /PUBUJPO +40/ ܗࣜʹσίʔυ͢ΔͱɺͭͷΞΫγϣϯͱͯ͠ܭଌ͞Ε·͢ɻͨͩ͠ɺ1SPUPCVGUP+40/σίʔυ͸ɺ,#୯Ґ Ͱͷ՝ۚͰ͸͋Γ·ͤΜɻ1SPUPCVGϝοηʔδͷσίʔυ͸ɺ࠷େϖΠϩʔυαΠζ,#·Ͱɺσίʔυ ΞΫγϣϯ ෼ͷྉ͕ۚ ͔͔Γ·͕͢ɺϧʔϧτϦΨʔͱΞΫγϣϯ࣮ߦʹ͍ͭͯ͸ɺ௨ৗͷϝʔλϦϯάͱಉ༷ʹ௥ՃྉۚΛࢧ෷͍·͢ɻ IUUQTBXTBNB[PODPNKQJPUDPSFQSJDJOH *P53VMF"DUJPOίετମܥ
  14. ࠓ·Ͱ 3VMF "DUJPO͚ͩ Ͱ0, -BNCEB %ZOBNP%# %ZOBNP%# *P5$PSF  *P5$PSF

    3VMF"DUJPOʹΑΔղܾΞϓϩʔν -BNCEB͕ͳ͘ͳΔͷͰɺ ͦ͜ͷΫΦʔλΛؾʹ͢Δ ඞཁ͕ͳ͍
  15. ࠓ·Ͱ 3VMF "DUJPO͚ͩ Ͱ0, *P5$PSF -BNCEB %ZOBNP%# %ZOBNP%# *P5$PSF 

    3VMF"DUJPOʹΑΔղܾΞϓϩʔν 3VMF"DUJPO୯ಠͰͷॲཧʹ ͳΔͨΊ͍҆ɻ଎͍ɻ ઈରతͳεέʔϦϯάੑೳɻ
  16.  "1* $MPVE -PBE 
 #BMBODJO H $MPVE 3VO $MPVE

    
 'VODUJPO T %BUBCBTF "MMPZ%# 'JSFTUPSF $POUFOUT $MPVE 
 4UPSBHF GSPOUFOEʢ41"ʣ 'JSFCBTF IPTUJOH 36. -PHT EEBHFOU $MPVE 3VO "1. -PHHJOH &SSPS5SBDLJOH .POJUPS #-& #-& #-& 3VMF"DUJPOʹΑΔղܾΞϓϩʔν ͜Ε΋-BNCEBΛ࢖Θͣʹ 3VMF"DUJPO୯ಠͰ͍͚Δ 3&45GVM"1*
  17.  ஫ҙ ˔ σϝϦοτͱ͍͏ΑΓɺͦ΋ͦ΋ͷ࢓༷ͷ࿩ʹͳΔ͚ΕͲɾɾɾ 
 3VMF"DUJPOͰ͸΍ΕΔ͜ͱʹݶք͕͋Δ ˔ େͨ͠σʔλՃ޻͸Ͱ͖ͳ͍ ˓ ࢀߟ"84*P5ؔ਺

    IUUQTEPDTBXTBNB[PODPNKB@KQJPUMBUFTUEFWFMPQFSHVJEF JPUTRMGVODUJPOTIUNM  ˔ ͦ΋ͦ΋ྲྀΕΔϖΠϩʔυ΍&5-͕ෳࡶͳΒɺ 
 3VMF"DUJPO୯ಠͰ͸·ͣଠ౛ଧͪͰ͖ͳ͍ ظ଴͗͢͠͸μϝθολΠ
  18.  ˔ ࣮ࡍʹ͸zΊͬͪΌؤுΕ͹3VMF"DUJPO୯ಠͰ͍͚ͦ͏zͱ͍͏ͷ΋͋ Δ ˔ ͔͠͠ɺͦΕΛ3VMF"DUJPOͰؤுΓ͗͢Δͱҟৗʹೝ஌ෛՙ্͕͕ Δ ˓ อकੑΛஶ͘͠Լ͔͛Ͷͳ͍ ˓

    ͳΒ-BNCEBͷ΄͏͕Θ͔Γ΍͘͢ͳ͍ʁ ஫ҙ ͜Ε͙Β͍ͳΒ·͊ɻ Ճ޻͕ೖͬͯͳ͍͚ͩ·ͩϚγɻ ΋͏ͪΐ͍͍͘ͱݫ͘͠ͳ͖ͬͯͦ͏ɻ
  19.  ˔ ͨͩ͠େࣄͳͷ͸ԿͰ΋͔ΜͰ΋-BNCEBʹཔΔͷͰ͸ͳ͘ɺ 
 ͜͏͍͏Α͏ʹ*P5಺෦ػೳΛ࢖͍౗ͨ͠΄͏͕ 
 ΑΓྑ͍ΞʔΩςΫνϟʹͰ͖ΔՄೳੑ͕͋Δɺͱ͍͏͜ͱ ˔ -BNCEBʹཔΔʹͯ͠΋ɺىಈ͔ͯ͠ΒதͰ7BMJEBUJPO͢ΔͷͰ͸ͳ͘ɺ 


    3VMF"DUJPOͷ42-ͷXIFSF۟ΛؤுΕ͹ɺ 
 ͦ΋ͦ΋-BNCEBͷىಈճ਺ΛݮΒͤΔίετ࡟ݮ ஫ҙ ϏοτΩʔͷ৔߹ɺ͜ͷख๏Ͱίε τΛ͔ͳΓԼ͛ΒΕͨଆ໘΋͋Δ