#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. 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. 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. 3.
  4. 5.

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

    2. LINEͰΧϨϯμʔʹมߋ͕͋ͬͨ͜ͱΛ௨஌͢Δ #ldgk
  5. 6.

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

    AWS Lambda͕API GWܦ༝ͰσʔλΛड͚औΔ 4. AWS Lambda͕LINEͷAPIΛίʔϧ͢Δ 5. LINEͰϝοηʔδ͕ૹ৴͞ΕΔ #ldgk
  6. 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ʉ
  7. 8.

    ͓ ͬ͜ ͨ ͜ ͱ 1. claspͰGASʹLINE BOT SDKೖΓίʔυΛΞοϓ͠Α͏ͱͨ͠ 2.

    GASͷϑΝΠϧ੍ݶʹͻ͔͔ͬͬͬͨ 3. GCP͸”׬શʹཧղͨ͠”Ϩϕϧͷཧղྔ 4. Α͠ɺAWSͩ #ldgk
  8. 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
  9. 16.

    A l e x a D a y 2 0

    1 9 https://alexaday2019.aajug.jp/
  10. 17.

    N e x t : Vo i c e C

    o n f J a p a n 2 0 2 0
  11. 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 )
  12. 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