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

AlexaスキルでDynamoDBを使ってみた。 / Used-DynamoDB-in-Alexa-skill

3640a4a973b26942df4e0dd391c889df?s=47 minamo173
October 17, 2018

AlexaスキルでDynamoDBを使ってみた。 / Used-DynamoDB-in-Alexa-skill

JAWS-UG 初心者支部#14「AWS Night school & LT」 LT大会
https://jawsug-bgnr.connpass.com/event/101789

3640a4a973b26942df4e0dd391c889df?s=128

minamo173

October 17, 2018
Tweet

Transcript

  1. "MFYBεΩϧͰ
 %ZOBNP%#Λ࢖ͬͯΈͨɻ 
 +"846(ॳ৺ऀࢧ෦
 !NJOBNP

  2. ࣗݾ঺հ w NJOBNP !NJOBNP  w 8FCΤϯδχΞʢʜͷ͸ͣʣ w ޷͖ͳ"84αʔϏε͸$PEF1JQFMJOF w

    ͜ͷॳ৺ऀࢧ෦ʹࢀՃ͍ͯ͠·ͨ͠ɻ
  3. झຯͰ"MFYBεΩϧΛ࡞Γ·ͨ͠ ೔෇Λࢦఆ͢Δͱɺ͝Έऩू඼໨Λ఻͑ΔεΩϧͰ͢ɻ

  4. ٕज़ॻయͰຊΛॻ͖·ͨ͠ w "MFYBεΩϧΛ࡞Δ·Ͱʹߟ͑ͨ͜ͱΛ
 ·ͱΊ·ͨ͠ɻ w ͓͔͛͞·Ͱ෺ཧຊ͸౰೔׬ച͠·ͨ͠! w ʢ#005)Ͱ1%'൛Λൢച͍ͯ͠·͢ʣ
 IUUQTNJOBNPCPPUIQNJUFNT

  5. ॻ͍ͨຊ͕/),هࣄͰөΓ·ͨ͠ IUUQTXXXOILPSKQOFXTIUNMLIUNM

  6. ͜ͷ-5ͷ໨త w %ZOBNP%#ͷར༻ྫΛ஌Δ w %ZOBNP%#ͷಛ௃Λ͔ܰͭ͘Ή

  7. ໨࣍ w "MFYBεΩϧͱ%ZOBNP%# w ͳͥ%ZOBNP%#Λ࢖͏ͷ͔

  8. ໨࣍ w "MFYBεΩϧͱ%ZOBNP%# w ͳͥ%ZOBNP%#Λ࢖͏ͷ͔

  9. "MFYBεΩϧͱ%ZOBNP%# w "MFYBεΩϧͰձ࿩͕ऴྃͨ͠ޙ΋σʔλΛอଘɾࢀর͍ͨ͠৔߹ʹ %ZOBNP%#͕ར༻Ͱ͖Δɻ w ࡞੒ͨ͠εΩϧͰ͸ɺϢʔβʔ͕ॴଐ͢Δ͝ΈऩूͷϒϩοΫ൪߸Λอଘ ͍ͯ͠Δɻ
 ʢ͝ΈऩूϒϩοΫ͝ͱʹɺಉ༵͡೔Ͱ΋ऩू඼໨͕ҧ͏ͨΊʣ

  10. ϒϩοΫ൪߸ొ࿥ͷΠϝʔδ

  11. ͝ΈऩूϒϩοΫ൪߸ͷςʔϒϧྫ Ϣʔβʔ*% ͝ΈऩूϒϩοΫ൪߸ BN[OBTLBDDPVOU"&YYYYYYYYYY  BN[OBTLBDDPVOU"&YYYYYYYYYY  BN[OBTLBDDPVOU"&YYYYYYYYYY  BN[OBTLBDDPVOU"&YYYYYYYYYY

     ˞࣮ࡍͷςʔϒϧΑΓྻ໨ͷσʔλΛ؆ུԽ͍ͯ͠·͢
  12. ໨࣍ w "MFYBεΩϧͱ%ZOBNP%# w ͳͥ%ZOBNP%#Λ࢖͏ͷ͔

  13. ͳͥ%ZOBNP%#Λ࢖͏ͷ͔ w %ZOBNP%#ͱ-BNCEBͷ૬ੑ͕͍͍͔Β w ѻ͍͍ͨσʔλ͕ෳࡶͰ͸ͳ͍͔Β

  14. "MFYBεΩϧͱ-BNCEB w "MFYBεΩϧ։ൃͰ͸"84-BNCEBΛ࢖͏͜ͱ͕ଟ͍ɻ w -BNCEB͸αʔόʔͷ͜ͱΛ։ൃऀ͕ҙࣝͤͣʹίʔυΛΠϕϯτۦಈ Ͱ࣮ߦͰ͖Δ؀ڥΛΫϥ΢υ্Ͱఏڙ͢ΔαʔϏεɻ w -BNCEBΛ࢖Θͳͯ͘΋։ൃͰ͖Δ͕ɺݸਓతʹ͸-BNCEBΛ࢖ͬͨํ ͕͓खܰͳҹ৅ɻ

  15. ΋͠-BNCEBͱ3%4Λͭͳ͍ͩ৔߹ "NB[PO"VSPSB 
 .Z42- 1PTUHSF42-
 .BSJB%# 0SBDMF
 .JDSPTPGU42-4FSWFSͳͲ -BNCEB 3%4

  16. ࣮ߦίϯςφ਺ͷίωΫγϣϯ͕ுΒΕΔ

  17. ࣮ߦίϯςφ਺ͷίωΫγϣϯ͕ுΒΕΔ ΠϕϯτۦಈͰ͋Δ-BNCEBͰͷ
 ίωΫγϣϯϓʔϧͷ࣮૷͸೉͍͠ େྔʹίωΫγϣϯ͕ுΒΕΔ͜ͱΛ
 ૝ఆ͢ΔͳΒͦΕʹԠͯ͡3%4ʹ
 $16ɾϝϞϦΛੵ·ͳ͚Ε͹ͳΒͳ͍
 ˠίετ૿

  18. ࣮ߦίϯςφ਺ͷίωΫγϣϯ͕ுΒΕΔ ΠϕϯτۦಈͰ͋Δ-BNCEBͰͷ
 ίωΫγϣϯϓʔϧͷ࣮૷͸೉͍͠ େྔʹίωΫγϣϯ͕ுΒΕΔ͜ͱΛ
 ૝ఆ͢ΔͳΒͦΕʹԠͯ͡3%4ʹ
 $16ɾϝϞϦΛੵ·ͳ͚Ε͹ͳΒͳ͍
 ˠίετ૿

  19. -BNCEBͱ%ZOBNP%#ͷ৔߹ -BNCEB %ZOBNP%#

  20. -BNCEBͱ%ZOBNP%#ͷ৔߹

  21. -BNCEBͱ%ZOBNP%#ͷ৔߹ ϦΫΤετ͕૿͑ͨ৔߹
 εέʔϧΞ΢τͯ͘͠ΕΔ େن໛Ͱͳ͚Ε͹3%4ͷ
 ࠷খΠϯελϯελΠϓΑΓ
 ίετ͕͍҆৔߹͕͋Δ

  22. ʲࢀߟʳֹ݄ྉۚͷൺֱ w 3%4
 ౦ژϦʔδϣϯ UNJDSP γϯάϧ"; ΦϯσϚϯυ
 I ࣌ؒ ೔

    w %ZOBNP%#ʢ࡞੒ͨ͠"MFYBεΩϧͰར༻͍ͯ͠Δߏ੒ʣ
 ౦ژϦʔδϣϯ ςʔϒϧ
 ϦʔυΩϟύγςΟϢχοτ ϥΠτΩϟύγςΟϢχοτ
  ʢ%ZOBNP%#಺ͷݟੵ΋ΓܭࢉΑΓʣ
  23. ѻ͍͍ͨσʔλ͕ෳࡶͰ͸ͳ͍ w %ZOBNP%#͸Ωʔͱͯ͠ઃఆͰ͖Δྻ਺͕ݶΒΕ͍ͯΔɻ w ϓϥΠϚϦΩʔݸʢඞਢʣʴηΧϯμϦΠϯσοΫεݸͷ࠷େݸ w %ZOBNP%#͸/P42-Ͱ͋Β͔͡Ίࢦఆͨ͠ΩʔͰ͔ࣹ͠ӨͰ͖ͳ͍ɻ w ઃఆͰ͖Δ΋ͷͷɺηΧϯμϦΠϯσοΫεΛଟ͘࢖༻͢Δͱॻ͖ࠐΈͷ ίετ্͕͕Δɻ

  24. ࡞੒ͨ͠"MFYBεΩϧͷ৔߹ Ϣʔβʔ*% ͝ΈऩूϒϩοΫ൪߸ BN[OBTLBDDPVOU"&YYYYYYYYYY  BN[OBTLBDDPVOU"&YYYYYYYYYY  BN[OBTLBDDPVOU"&YYYYYYYYYY  BN[OBTLBDDPVOU"&YYYYYYYYYY

     ˞࣮ࡍͷςʔϒϧΑΓྻ໨ͷσʔλΛ؆ུԽ͍ͯ͠·͢ ʮϢʔβʔ*%ʯྻ͕ϓϥΠϚϦΩʔ
  25. ࡞੒ͨ͠"MFYBεΩϧͷ৔߹ w "MFYBεΩϧͷϢʔβʔ*%Λࢦఆͯ͠ɺͦͷϢʔβʔ͕ॴଐ͢ΔϒϩοΫ ൪߸͕อଘɾࢀরͰ͖Ε͹0,ɻ w ʮϒϩοΫ൪߸͕൪ͷਓΛूܭ͢Δʯͱ͍͏Α͏ͳ͜ͱ͸͠ͳ͍૝ఆɻ

  26. ·ͱΊ

  27. ·ͱΊ w %ZOBNP%#͸"MFYBεΩϧ։ൃͰར༻Ͱ͖Δɻ w -BNCEBͰσʔλϕʔε͕ඞཁͳ࣌͸%ZOBNP%#͕͓͢͢Ίɻ w ͨͩ͠3%#ͱ͸ςʔϒϧઃܭʹҧ͍͕͋ΔͨΊཁ஫ҙɻ

  28. ͝ਗ਼ௌ༗೉͏͍͟͝·ͨ͠ʂ