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

サーバーレス開発ツール『Zappa』の紹介_20180925

sumihiro3
September 25, 2018

 サーバーレス開発ツール『Zappa』の紹介_20180925

【東京】BOOT AWARDS直前!秋のBot開発者大LT祭り!(2018/09/25)で発表した資料です。

sumihiro3

September 25, 2018
Tweet

More Decks by sumihiro3

Other Decks in Technology

Transcript

  1. n l 6 Compass 10 n l BOT, VUI, n

    l https://protopedia.net/prototyper/sumihirokagawa n SNS Ø @sumihiro3 Ø https://www.facebook.com/sumihiro.kagawa
  2. 

  3. 8 Bot n l % ! '$ &# n UI

    LINE l HTTP Session    l "(FlexMessage UX  &
  4.   AWS  API Gateway Lambda DynamoDB SQS SNS

    S3 Bucket Lambda Lambda Kinesis 
  5. Zappa n Zappa https://github.com/Miserlou/Zappa l 2 1 Ø AWS !&#(

    2,.Python "% $(*)"'  10  l “serverless” 1 Ø “serverless” node.js  - Python -”pip install”  l Lambda + API Gateway Ø SQSSNS+/10
  6. Zappa 1 1 n Lambda + API Gateway 4 l

    Webhook URL HTTPS URL Ø Lambda, API Gateway, I AM     l Zappa OK [BQQB EFQMPZ
  7. Zappa 2 n 5 l 5 1 OK Ø 

       l 5 OK { "dev": { "app_function": "main.app", "aws_region": "ap-northeast-1", "profile_name": "default", "project_name": ”XXXX-bot", "runtime": "python3.6", "environment_variables": { "TZ": "Asia/Tokyo", ”HOGE_TABLE": ”HogeTableDEV” } }, "prod": { "extends": "dev", "keep_warm": true, "environment_variables": { ”HOGE_TABLE": ”HogeTable” } } } ։ൃ༻ ຊ൪༻
  8. Zappa 3 n l Bot 1 6 ” ” Ø

    (- 2. 4+98'1  - #Bot PUSH ""#5/S3 35  Ø Bot #Webhook Reply - Bot Reply token,306 - #Response,86 l Ø @task $ )7" 0!% *&
  9. n @ 1 LINE #!  ü   ü

      ü  ü   DynamoDB API Gateway Lambda " Firebase
  10. Zappa 2 n l S3  DynamoDB SQSSNS  

     n n CloudWatch Logs n Lambda OK n Flask LIFF
  11. F.I.Y. n Zappa Clova Qiita l 30 Clova Extension Kit

    SDK for Python Clova 4 Ø https://bit.ly/2ML9LOR Ø https://bit.ly/2O2giJE l 2