$30 off During Our Annual Pro Sale. View Details »

AWS SAMを使ったサーバーレスBot開発

AWS SAMを使ったサーバーレスBot開発

AWS相談会・勉強会@金沢 2017年8月24日 LT発表

Kentaro Matsushita

September 10, 2017
Tweet

More Decks by Kentaro Matsushita

Other Decks in Programming

Transcript

  1. "844".׾⢪׏׋
 ؟٦غ٦ٖأ#PUꟚ涪 %..DPNٓنفٓحزؿؓ٦يꟚ涪鿇 匟♴⨳㣕龤

  2. 荈䊹稱➜ فٓحزؿؓ٦يꟚ涪鿇⠓㆞㛇湍ؿٗٝزؒٝسث٦ي 匟♴⨳㣕龤 兛媮ך➬✲דכ،ؕؐٝز涫ꐮװؚٗ؎ٝ׾⡲׏גְתׅկ "84ⵃ欽娖٠剢 ⴱ׭ג鍗׏׋"84؟٦ؽأ"1*(BUFXBZ

  3. "84⹈䓼⚥דׅ "84ⴱ秷زٖ٦صؚٝ 剢 "844VNNJU5PLZP 剢

  4. ➙傈כ 
 "844".׾⢪׏׋
 ؟٦غ٦ٖأז#PUꟚ涪 חאְג鑧׃תׅ

  5. None
  6. "844".׾
 ⢪׏גְתׅ

  7. "844".הכ ˖ 姻䒭חכ"844FSWFSMFTT"QQMJDBUJPO.PEFM ˖ ؟٦غ٦ٖأ،فٔ؛٦ءّٝ׾ذٝفٖ٦زד盖椚 ˖ $MPVE'PSNBUJPOךذٝفٖ٦ز׾⢪欽 ˖ "1*(BUFXBZך"1*װ-BNCEBꟼ侧ծ%ZOBNP%#ذ٦ ـٕזוךٔا٦أָⵃ欽〳腉

    ˖ ،فٔ؛٦ءّٝךػح؛٦آ⻉הرفٗ؎ָ$-*ַ ׵דֹ׷ IUUQTBXTBNB[PODPNKQBCPVUBXTXIBUTOFXJOUSPEVDJOHUIFBXT TFSWFSMFTTBQQMJDBUJPONPEFM
  8. 圓䧭׾ذٝفٖ٦زד盖椚 遤鷄⸇ׅ׷ֿהד
 4".ذٝفٖ٦زהז׷ FY -BNCEBה"1*(BUFXBZד圓䧭ׁ׸׷،فٔ؛٦ءّٝ ٔا٦أ׾㹀纏

  9. فؙٕٔך麊欽何㊣ך ׋׭ח#PU׾⡲׶ת׃׋

  10. 堣腉 ˖4MBDL鸐濼 ˖ فؙٕٔؒأزָؔ٦فٝ׃׋הֹ ˖ فؙٕٔؒأزָو٦آדֹ׷הֹ ˖ فؙٕٔؒأزחًٝءّٝ؝ًٝزָאְ׋הֹ ˖(JU)VCِ٦ذ؍ٔذ؍ ˖

    فؙٕٔؒأزָؔ٦فٝ׃׋הֹח
 ،؟؎ص٦٥ٖؽُ،٦׾荈⹛鷄⸇
  11. ⢪欽⢽ ًٝءّٝ؝ًٝزָ
 אְ׋הֹ و٦آדֹ׷הֹ ؔ٦فٝ׃׋הֹ 荈ⴓחꟼ⤘ך֮׷؎كٝزך׫׾鸐濼

  12. ٖؽُ٦؝ًٝز׾剅ֻ  8FCIPPL鷏⥋  "1*(BUFXBZד
 8FCIPPL「⥋  -BNCEBַ׵(JU)VC"1*פ
 ؙٔؒأز 

    4MBDLחًحإ٦آ鷏⥋  圓䧭
  13. "844".ד㹋ꥷח
 #PU׾圓眠׃ג׫״ֲ

  14. 彊⪒ׅ׷׮ך ˖"84$-*خ٦ٕ ˖4غ؛حز ˖ ػح؛٦آ⻉ׁ׸׋،فٔ؛٦ءّٝ׾呓秛 ˖ٗ٦ٕؕחؙٗ٦ٝ׃׋ٔهآزٔ ˖ LFOUBSPNMBNCEBQSOPUJGZCPU"TMBDLCPUUIBU SFNJOETSFWJFXFSTUPSFWJFXUIFJSQVMMSFRVFTUTPO"84 ˖

    IUUQTHJUIVCDPNLFOUBSPNMBNCEBQSOPUJGZCPU
  15. "84$-*׾㹋遤ׅ׷׌ֽ $ aws cloudformation package --template-file template.yml --s3-bucket <Your bucket

    name> --output-template .sam/packaged.yml $ aws cloudformation deploy --template-file ./.sam/packaged.yml --stack-name <Your stack name> --capabilities CAPABILITY_IAM "1*ؒٝسه؎ٝز׾
 (JU)VC8FCIPPLח鏣㹀
  16. "844".
 孡חז׏גֹת׃׋

  17. 鑐׃ג׫׋ֻ ז׶ת׃׋

  18. BXTMBCTח؟ٝفָٕ֮׶תׅ IUUQTHJUIVCDPNBXTMBCTTFSWFSMFTTBQQMJDBUJPONPEFM

  19. 剑鵚ծ"844".ח
 倜׃ְخ٦ָٕ鷄⸇ׁ׸׋

  20. "844".כٗ٦ٕؕד 㹋遤דֹזַ׏׋ 剑鵚תד

  21. ٗ٦ٕؕ㹋遤דֹזְה㔭׷ֿה ˖ذأزך㹋遤ָꨇ׃ְ ˖ ٌحؙ׾欽䠐 ˖رغحָؚꨇ׃ְ ˖ ⥜姻ך䏝חرفٗ؎ػح؛٦آ׾⡲䧭׃ծ"84♳חرفٗ ؎׃ג嗚鏾

  22. "844".-PDBMָ涫㜥 IUUQTBXTBNB[PODPNKQCMPHTOFXTOFXBXTTBNMPDBMCFUB CVJMEBOEUFTUTFSWFSMFTTBQQMJDBUJPOTMPDBMMZ

  23. ؟٦غ٦ٖأ،فٔ؛٦ءّٝ׾ ٗ٦ٕؕד㹋遤דֹ׷״ֲח

  24. رغحؚ٥ذأز㹋遤ָ 㺁僒ח

  25. תה׭ ˖"844".׾⢪欽ׅ׷הծ؟٦غ٦ٖأ،فٔ؛٦ ءّٝ׾知⽃ח圓眠ׅ׷ֿהָדֹ׷ ˖"844".-PDBMד،فٔ؛٦ءّٝ׾ٗ٦ٕؕ㹋遤 ׅ׷ֿהדذأز㹋遤װرغحָؚ㺁僒חז׷