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

IoT系サービス総まとめ+CDK関連アップデート/regrowth-iot-and-cdk

tomoki10
December 08, 2021

 IoT系サービス総まとめ+CDK関連アップデート/regrowth-iot-and-cdk

Classmethodのイベント「re:Growth」の発表で用意した内容です。
re:Inventで発表されたIoTサービスとCDKの話をまとめました。

tomoki10

December 08, 2021
Tweet

More Decks by tomoki10

Other Decks in Technology

Transcript

  1. ࣗݾ঺հ  w ࠤ౻ஐथ w Ϋϥεϝιουגࣜձࣾ w $9ࣄۀຊ෦*P5ࣄۀ෦ w લ৬ɿ4*FSͷ4&Λ೥ऑ

    w ݱࡏɿΠϯϑϥ݉αʔόʔαΠυ݉FUD w ޷͖ͳ"84αʔϏεɿ "84-BNCEBɺ"84$MPVE%FWFMPQNFOU,JU $%, @tomoki10 @tmk2154
  2. Ξοϓσʔτ໨࣍  w*P5ܥαʔϏεΞοϓσʔτ w "84*P53PCP3VOOFS w "84*P5(SFFOHSBTT w (SFFOHSBTT4PGUXBSF$BUBMPH w

    4ZTUFNT.BOBHFSͷίϯϙʔωϯτ௥Ճ w "84*P54JUF8JTF$PME4UPSBHF w "84*P55XJO.BLFS w "841SJWBUF( w "84*P5&YQSFTTMJOL w "84*P5%FWJDF.BOBHFNFOU'MFFU *OEFYJOH͕ͭͷσʔλιʔεʹ௥ՃରԠ w 'SFF3504Ͱͷ"84*P5΁ͷ઀ଓΛ؆୯ʹߦ ͑ΔσϞΛఏڙ w 'SFF3504ͷ֦ுϝϯςφϯεΛൃද w$%,Ξοϓσʔτ w $%,W͕͍ͭʹϦϦʔε w $%,$POTUSVDU)VC͕("
  3. ໨࣍मਖ਼൛ గਖ਼ઢͷ͍ͭͯͳ͍෦෼͚ͩ࿩͠·͢  w*P5ܥαʔϏεΞοϓσʔτ w "84*P53PCP3VOOFS w "84*P5(SFFOHSBTT w (SFFOHSBTT4PGUXBSF$BUBMPH

    w 4ZTUFNT.BOBHFSͷίϯϙʔωϯτ௥Ճ w "84*P54JUF8JTF$PME4UPSBHF w "84*P55XJO.BLFS w "841SJWBUF( w "84*P5&YQSFTTMJOL w "84*P5'MFFU8JTF w "84*P5%FWJDF.BOBHFNFOU'MFFU *OEFYJOH͕ͭͷσʔλιʔεʹ௥ՃରԠ w 'SFF3504Ͱͷ"84*P5΁ͷ઀ଓΛ؆୯ʹߦ ͑ΔσϞΛఏڙ w 'SFF3504ͷ֦ுϝϯςφϯεΛൃද w$%,Ξοϓσʔτ w $%,W͕͍ͭʹϦϦʔε w $%,$POTUSVDU)VC͕("
  4. "84*P5ܥαʔϏεͷ։ൃͷྲྀΕ  ֤αʔϏεͷಛ৭ w"84ͷαʔϏεʜجຊϚΠΫϩαʔϏεΛҙࣝͯ͠ߏங w*P5ܥͷαʔϏεʜ*P5αʔϏε։ൃͷϢʔεέʔεʹ͋ͬͨػೳΛ։ൃ *P5ͷαʔϏε։ൃ͸ΤϯδχΞϦϯάͷ૯߹֨ಆٕ AWS IoT Core IoT

    sensor AWS Cloud σόΠεଆ ϑϩϯτଆ ૹ৴ ໋ྩ ՄࢹԽ ໋ྩ ֤αʔϏεݻ༗Ͱͳ݁͘ߏ͓ܾ·ΓͰඞཁͳύλʔϯ͕͋Δ ࠩผԽʹܨ͕Βͳ͍෦෼͸ԣ۲Ͱ؅ཧͰ͖ΔαʔϏε͕ٻΊΒΕ͍ͯΔ … …
  5. "84*P53PCP3VOOFS 1SFWJFX  ϩϘοτ։ൃऀ͕Πϯϑϥ؅ཧͳ͠ͰɺγϛϡϨʔγϣϯΛ࣮ߦɺεέʔϦϯάɺ ࣗಈԽ͕Ͱ͖ΔΫϥ΢υϕʔεͷγϛϡϨʔγϣϯαʔϏε before "ϕϯμʔ ϩϘοτͷ ؅ཧγεςϜ #ϕϯμʔ

    ϩϘοτͷ ؅ཧγεςϜ Aϕϯμʔ ϩϘοτ܈ Bϕϯμʔ ϩϘοτ܈ ϕϯμʔݻ༗ͷϩϘ/γεςϜͰ ؅ཧ͕೉͍͠ɻಠࣗʹ౷߹؅ཧγ εςϜΛ࡞Δͷ΋खؒ ؅ཧऀ ؅ཧऀ *P5 3PCP 3VOOFS after "ϕϯμʔ ϩϘοτͷ ؅ཧγεςϜ #ϕϯμʔ ϩϘοτͷ ؅ཧγεςϜ Aϕϯμʔ ϩϘοτ܈ Bϕϯμʔ ϩϘοτ܈ RoboRunnerܦ༝Ͱૢ࡞΍؂ࢹΛ ந৅Խ͠ϩϘοτΛָʹ؅ཧ
  6. "84*P5(SFFOHSBTT  (SFFOHSBTT4PGUXBSF$BUBMPH͕ެ։ར༻Մೳʹʂ "84νʔϜ΍(SFFOHSBTTͷίϛϡχςΟ͕࡞੒ͨ͠ίϯϙʔωϯτ͕ར༻Մೳ ࠩผԽʹܨ͕Γʹ͍͘։ൃ෦෼Λखܰʹ࣮૷ՄೳʹͳΔ GitHub্Ͱίϯϙʔωϯτ͕ެ։ ίϯϙʔωϯτͷྫ • σόΠεΧϝϥ͔ΒKinesisVideoStream΁ͷసૹ •

    ΤοδଆͰͷGrafanaʹΑΔσʔλՄࢹԽ • ΤοδଆͰͷ࣌ܥྻDB(InfluxDB)ͷར༻ • σόΠεͰGreengrassΛಈ͔ͨ͢Ίͷ࠷খߏ੒ • DeviceDefender΁ͷ௨஌ • σόΠεͷNW઀ଓঢ়گΛ؂ࢹ/ߋ৽ https://github.com/aws-greengrass/aws-greengrass-software-catalog
  7. "84*P54JUF8JTF  w"84*P54JUF8JTF͕$PME4UPSBHFʹରԠ w"84*P54JUF8JTFͱ͸ ࢈ۀػثͷେن໛ͳσʔλΛऩूɺϞσϧԽɺՄࢹԽͳͲΛߦ͏αʔϏε w4JUF8JTF͸ैདྷ4JUF8JTF಺ͷ࣌ܥྻ%#͔"NB[PO5JNFTUSFBNʹσʔλ͕ อଘ͞Ε͍ͯͨɻ4ͳͲʹൺ΂Δͱׂߴͳઃఆʹͳ͍ͬͯͨ˞  before after

    ։ൃऀ ͕࣌ؒա͗ͨΒෆཁͳσʔλ͕ ଟ͍ͷʹߴ͍ͳ͋ AWS IoT SiteWise AWS Cloud ࣌ܥྻ %# ˞"844JUF8JTFͷσʔλετϨʔδՁ֨ɿIUUQTBXTBNB[PODPNKQJPUTJUFXJTFQSJDJOH AWS IoT SiteWise AWS Cloud ࣌ܥྻ %# Amazon S3 6࣌ؒͰୀආ ։ൃऀ ͳΜ͔҆͘ͳͬͨ
  8. "84*P55XJO.BLFS 1SFWJFX  wσδλϧπΠϯͱ͸ ݱ࣮ͷੈք͔Βऩू༷ͨ͠ʑͳσʔλΛɺ·ΔͰ૒ࢠͰ͋Δ͔ͷΑ͏ʹɺίϯ ϐϡʔλ্Ͱ࠶ݱ͢Δٕज़ͷ͜ͱ˞ wσδλϧπΠϯͷ࡞੒ʹ͸ҎԼΛ౷߹࣮ͯ͠૷͢Δඞཁ͕͋ͬͨ wσόΠεσʔλ͔ΒͷϦΞϧλΠϜʹσʔλιʔεΛऔಘ͢Δ࣮૷ wϏδϡΞϧΞηοτ %Ϟσϧ

    μογϡϘʔυͷ࣮૷ w্هσʔλιʔεͱΞηοτμογϡϘʔυͷ݁߹ w෼ੳ.-πʔϧʹΑΔঢ়ଶͷऩू༧ଌ ˞Ҿ༻ݩɿʮσδλϧπΠϯͱ͸ʁҙຯɾఆٛc*5τϨϯυ༻ޠc/55ίϛϡχέʔγϣϯζʯIUUQTXXXOUUDPNCJ[POHMPTTBSZKUEJHJUBMUXJOIUNM
  9. "84*P55XJO.BLFS 1SFWJFX  w "84*P55XJO.BLFS͕୲͏ػೳ w σʔλιʔεͱ઀ଓ͢ΔͨΊͷσʔλίωΫλʔΛఏڙ w ϞσϧϏϧμʔͰϏδϡΞϧΞηοτΛఏڙ w

    (SBGBOB΍.BOBHFE(SBGBOBʹΑΔμογϡϘʔυͷ࡞੒ࢧԉ Amazon Kinesis Video Streams AWS IoT SiteWise ֎෦ Ϧιʔε Amazon EC2 ࣗલ͔֎෦ιϑτ΢ΣΞ Ϟσϧ Ϗϧμʔ ίωΫλʔ γʔϯίϯ ϙʔβʔ Amazon Managed Service for Grafana Amazon Kinesis Video Streams AWS IoT SiteWise ֎෦ Ϧιʔε Amazon Managed Service for Grafana *P55XJO .BLFS AWS Lambda before after ը૾Ҿ༻ݩɿhttps://aws.amazon.com/jp/blogs/news/introducing-aws-iot-twinmaker/
  10. "84*P5&YQSFTTMJOL  w "84্΁ͷηΩϡΞͳ઀ଓΛઃఆࡁͷίωΫςΟϏςΟσόΠε͕ఏڙ w ैདྷͷ໰୊ w ޻৔ग़ՙ࣌ʹηΩϡΞΤϨϝϯτ΁"84઀ଓ༻ͷূ໌ॻͷ࢓ࠐΈ͕ඞཁ w ग़ՙޙ΋ηΩϡϦςΟ΍ωοτϫʔΫ༻ͷϥΠϒϥϦͷߋ৽͕ඞཁ

    w "84*P5&YQSFTTMJOLͷར఺಺༰ w σόΠε։ൃؚΊ͔ͯΒ্ཱͪ͛Δ৔߹͸ɺূ໌ॻΛຒࠐࡁͰग़ՙग़དྷΔͷͰ։ൃ΍ӡ༻ͷखؒΛ࡟ݮ w σόΠεͷߋ৽͸*P5+PC΍05"ɺ*P5%FWJDF.BOBHFNFOUɺ*P5%FWJDF%FGFOEFSͰՄೳ σόΠεൢചձࣾͷ৘ใΛݟΔͱɺ*P5$PSFશൠͷαʔϏε͸઀ଓग़དྷͦ͏˞  w ଞʹ͸4ɺ&$ɺ4BHF.BLFS΋ར༻Մೳ ※ࢀߟσόΠεɿhttps://devices.amazonaws.com/detail/a3G0h00000E2MC1EAN/AWS-IoT-ExpressLink-SARA-R5-Starter-Kit
  11. "84$%,W("🎉  w"84ϦιʔεΛͳΕͨϓϩάϥϛϯάݴޠͰߏஙͰ͖Δ"84$%,ͷW͕͍ͭ ʹϦϦʔε͞Ε·ͨ͠ʂʂʂ wWͷར఺ w"84αʔϏε͝ͱʹόϥόϥʹΠϯϙʔτ͢Δ͜ͱ͕ෆཁޡͬͯόʔδϣϯ ҧ͍ͰΠϯϙʔτͯ͠ΤϥʔʹͳΔݱ৅Λ๷ࢭ˞  w&YQFSJNFOUBMͳػೳ͕෼཭͞Εɺޡͬͯ࢖༻͢Δ͜ͱΛ๷ࢭ wϑϥά؅ཧ͞Ε͍ͯͨ௥Ճػೳ

    ৽͍͠CPPUTUSBQͳͲ ͕σϑΥϧτͰ࣮ߦ w%FQSJDBUFEʹͳ͍ͬͯͨػೳύϥϝʔλ͕࡟আ͞Εޡͬͨ࢖༻Λ๷ࢭ ˞ࢀߟɿIUUQTTQFBLFSEFDLDPNUPNPLJLOPXIPXGSPNJOJUJBMEFWFMPQNFOUUPPQFSBUJPOPOIPXUPVTFBXTDEL TMJEF
  12. "84$%,$POTUSVDU)VC("🎉  w$POTUSVDU)VCͱ͸ w"84΍044ίϛϡχςΟɺΫϥ΢υϓϩόΠμʔ͕ެ։͢Δ$%,ͷύοέʔ δΛڞ༗͢ΔͨΊͷϓϥοτϑΥʔϜ https://constructs.dev/ Ϋϥ΢υϓϩόΠμʔ͕ެ։͍ͯ͠Δྫ • DataDogͱ࿈ܞ https://github.com/DataDog/datadog-cdk-constructs

    ίϛϡχςΟ͕ެ։͍ͯ͠Δྫ • ϦʔδϣϯؒΫϩεελοΫࢀর࣮૷ͷ؆қԽ https://constructs.dev/packages/cdk-remote-stack/ • IAM Policy࣮૷ͷ؆қԽ https://constructs.dev/packages/cdk-iam-floyd/ • GitLab Runnerͷ࡞੒ https://constructs.dev/packages/cdk-gitlab-runner/ • σʔλͷೖ͍ͬͯΔS3όέοτͷ࡟আ https://constructs.dev/packages/cdk-s3bucket-ng/