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

#ldgk GoogleとLINEをつなごうとしたら AWSが出てきた話 / ldgk-20191030

#ldgk GoogleとLINEをつなごうとしたら AWSが出てきた話 / ldgk-20191030

LINE Hackers Meetup Vol.1 @Kyoto

75486cbfd37125f121cf4a6c5614601c?s=128

Hidetaka Okamoto

October 30, 2019
Tweet

Transcript

  1. G o o g l e ͱ L I N

    E Λ ͭ ͳ ͝ ͏ ͱ ͠ ͨ Β A W S ͕ ग़ ͯ ͖ ͨ ࿩ L I N E H a c k e r s M e e t u p Vo l . 1 @ K y o t o #ldgk
  2. H i d e t a k a O k

    a m o t o • Digitalcube Co. Ltd. • Alexa Campions • AWS Samurai 2017 in Japan • ask sdk(Node.js) Core contributor
  3. None
  4. https://aajug.connpass.com/event/152201/

  5. ΍ Γ ͨ ͔ ͬ ͨ ͜ ͱ 1. GoogleΧϨϯμʔͷ༧ఆΛ௥Ճɾมߋɾ࡟আ͢Δ

    2. LINEͰΧϨϯμʔʹมߋ͕͋ͬͨ͜ͱΛ௨஌͢Δ #ldgk
  6. ΍ ͬ ͨ ͜ ͱ 1. GASͰGoogleΧϨϯμʔͷมߋΛτϦΨʔ͢Δ 2. GAS͔ΒΧϨϯμʔ৘ใΛAPIʹPOST͢Δ 3.

    AWS Lambda͕API GWܦ༝ͰσʔλΛड͚औΔ 4. AWS Lambda͕LINEͷAPIΛίʔϧ͢Δ 5. LINEͰϝοηʔδ͕ૹ৴͞ΕΔ #ldgk
  7. ΍ ͬ ͨ ͜ ͱ 1. GASͰGoogleΧϨϯμʔͷมߋΛτϦΨʔ͢Δ 2. GAS͔ΒΧϨϯμʔ৘ใΛAPIʹPOST͢Δ 3.

    AWS Lambda͕API GWܦ༝ͰσʔλΛड͚औΔ 4. AWS Lambda͕LINEͷAPIΛίʔϧ͢Δ 5. LINEͰϝοηʔδ͕ૹ৴͞ΕΔ #ldgk ʊਓਓਓਓਓਓਓʊ ʼɹͳΜ͔͍Δɹʻ ʉY^Y^Y^Y^Y^Yʉ
  8. ͓ ͬ͜ ͨ ͜ ͱ 1. claspͰGASʹLINE BOT SDKೖΓίʔυΛΞοϓ͠Α͏ͱͨ͠ 2.

    GASͷϑΝΠϧ੍ݶʹͻ͔͔ͬͬͬͨ 3. GCP͸”׬શʹཧղͨ͠”Ϩϕϧͷཧղྔ 4. Α͠ɺAWSͩ #ldgk
  9. ࣮ ૷ ʹ ͋ ͨ ͬͯ 1. GAS: [npm run

    build & clasp push]ͰTypeScript࣮૷ 2. ܕ͸`npm i -D @types/google-apps-script` 3. AWS Systems ManagerʹLINE API KeyͳͲ͸҉߸Խͯ͠อଘ 4. Serverless FWͰSystems Managerͷ஋ΛLambdaͷ؀ڥม਺ʹ #ldgk
  10. ί ʔ υ ͸ ͜ Μ ͳ ײ ͡

  11. ί ʔ υ ͸ ͜ Μ ͳ ײ ͡ ϝοηʔδΛ

    ࡞੒͢Δॲཧ
  12. ί ʔ υ ͸ ͜ Μ ͳ ײ ͡ LINE

    APIΛίʔϧ
  13. ͱΓ͋͑ͣͰ͖ͨ΋ͷ

  14. ͭ ͬͯ͘Έ ͯ 1. LINEͷ@line/bot-sdkΛ࢖͑͹؆୯ʹϝοηʔδૹ৴Ͱ͖Δ 2. ܕఆٛ΋͋ΔͷͰɺTypeScriptͰ؆୯ʹ࡞ΕΔ 3. ͨͩ͠GASʹೖΕΕΔ΄Ͳܰ͘͸ͳ͍ 4.

    AWS / GCP͋ͨΓ͸APIΩʔͷ؅ཧ΋Ͱ͖Δɻ͏·͘૊Έ߹ΘͤΑ͏ #ldgk
  15. ͪ ͳ Έ ʹ

  16. A l e x a D a y 2 0

    1 9 https://alexaday2019.aajug.jp/
  17. N e x t : Vo i c e C

    o n f J a p a n 2 0 2 0
  18. [ ‘ C l o v a ’ , ‘

    A l e x a ’ , ‘ G o o g l e H o m e ’ , … ] . i n c l u d e s ( Vo i c e )
  19. S p e a k e r S p o

    n s o r S t a ff e t c … G e t I n v o l v e d ! https://forms.gle/x8LU3SRE6wR7r14Q9