Slide 1

Slide 1 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. T O K Y O 2 0 1 9 . 1 0 . 0 3 - 0 4 ΦʔϓϯιʔείϛϡχςΟͰ Ճ଎͢ΔαʔόʔϨεͷະདྷ ງՈོ޺ CEO Serverless Operations LLC

Slide 2

Slide 2 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. ࣗݾ঺հ ɾServerless Operationsͱ͍͏ձࣾΛ΍ͬͯ·͢ ɾServerless Frameworkͷϝϯςφʔ ɾαʔόʔϨεͰͷ։ൃָ͕ʹͳΔπʔϧΛ࡞ͬͯ
 ɹΦʔϓϯιʔεͰެ։ͯ͠·͢ ɾServerless Meetup TokyoͷΦʔΨφΠβʔ

Slide 3

Slide 3 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Ϋϥ΢υͷੈքͷதʹ͍ͳ͕Βɺ ΦʔϓϯιʔείϛϡχςΟʹࢀՃ͢Δ͜ͱͷָ͠͞΍ҙຯ ͦͯͦ͠Ε͕͋ͳͨࣗ਎΍ΩϟϦΞʹͲΜͳӨڹΛ΋ͨΒ͢ͷ͔
 ຊ೔఻͍͑ͨ͜ͱ

Slide 4

Slide 4 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Agenda ɾࢲͱαʔόʔϨεͷྺ࢙ ɾࢲ͕ؔΘ͍ͬͯΔOSSϓϩδΣΫτ ɾάϩʔόϧͷαʔόʔϨείϛϡχςΟʹࢀՃ͢Δ͜ͱ
 ɹͦͷதͰಘͨ΋ͷ ɾOSSϓϩδΣΫτΛܧଓతʹଓ͚Δํ๏
 
 ɾ͜Ε͔ΒͷαʔόʔϨεͷ࿩

Slide 5

Slide 5 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. T O K Y O ͳͥαʔόʔϨεͳ OSSʹ೤த͢ΔΑ͏ʹͳͬͨͷ͔ গࣗ͠෼ͷྺ࢙Λ͔͞ͷ΅ͬͯΈΔ

Slide 6

Slide 6 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. ɾ2006೥ɿେֶͷݚڀࣨͰγϡϛϨʔγϣϯͷϓϩάϥϜΛC++Ͱॻ͘
 ɹɹɹɹɹϓϩάϥϛϯάͷָ͠͞Λײ͡ΔΑ͏ʹͳΔ ɾ2008೥ɿਆށσδλϧɾϥϘͱ͍͏ਆށͷSierͷձࣾʹ৽ଔೖࣾɻ
 ɹɹɹɹɹPHPΛ͔ͭͬͨWebΞϓϦέʔγϣϯͷ։ൃͷ࢓ࣄΛͨ͘͞Μ΍Δ ɾ2009೥ɿΦʔϓϯιʔεCMSͷWordPressͱͷग़ձ͍ ྺ࢙

Slide 7

Slide 7 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. WordPressͱͷग़ձ͍

Slide 8

Slide 8 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. WordPressͱAWSͳ೔ʑ

Slide 9

Slide 9 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWSָ͕ͦ͠͏ʹөΔ೔ʑ ɾ2013೥ࠒ͸ɺ·ͩEC2͕த৺ͷੈք؍ɻ
 ɹϓϩάϥϚʔͷࣗ෼͸ΠϯϑϥΛ৮Δ͜ͱ͕΄΅ͳ͍ͨΊ
 ɹਂؔ͘ΘΔ͜ͱ͸ͳ͔ͬͨ ɾͰ΋AWSͷ੎͍΍ίϛϡχςΟʹ͸ඇৗʹऒ͔Ε͍ͯͨ

Slide 10

Slide 10 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. 2014೥ - AWS LambdaͷϦϦʔε

Slide 11

Slide 11 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambdaͷ͕΋ͨΒͨ͠΋ͷ αʔόʔΛ࡞Βͣͱ΋ϓϩάϥϜ͕AWS্Ͱ࣮ߦͰ͖ΔΑ͏ʹͳͬͨ 
 ࣗ෼ͨͪʹ΋AWSͷαʔϏεΛ૊Έ߹Θͤͯ໘ന͍΋ͷ͕ͭ͘ΕΔͧͱ͍ ͏ϫΫϫΫ͕େ͖͘૿ͨ͠

Slide 12

Slide 12 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. 2015೥ - API GatewayͷϦϦʔε

Slide 13

Slide 13 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. API Gateway͕΋ͨΒͨ͠΋ͷ LambdaϕʔεͰ࡞ͬͨΞϓϦέʔγϣϯ͕HTTPϓϩτίϧΛ௨ͯ͠
 AWSͷ֎ͷੈքʹ༰қʹग़ͤΔΑ͏ʹͳͬͨ AWSͷαʔϏεΛ্ख͘૊Έ߹Θͤͯ໘ന͍ΞϓϦέʔγϣϯΛ
 ެ։Ͱ͖Δͧͱ౰࣌ͷࣗ෼͸େ͖͘ڵฃͨ͠

Slide 14

Slide 14 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. ಈ͘΋ͷΛ࡞ͬͯ͸ࢼ͢೔ʑ

Slide 15

Slide 15 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. ௚໘ͨ͠໰୊ ɾϚωδϝϯτίϯιʔϧ͔Β௚઀ιʔείʔυΛΞοϓϩʔυ͢ΔͨΊɺ
 ɹόʔδϣϯ؅ཧͰ͖ͳ͍ ɾ෼ࢄ؀ڥԼͰͲͷΑ͏ʹߏ੒؅ཧ͢Δͷʁ ɾCI/CDͷࣗಈԽ͸ʁ

Slide 16

Slide 16 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. ͦΕΒΛղܾ͢ΔServerless Frameworkͷొ৔

Slide 17

Slide 17 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWSͷߏ੒ΛOSSԽͰ͖Δিܸ

Slide 18

Slide 18 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. T O K Y O ࢲ͕ؔΘΔαʔόʔϨεͳOSSϓϩδΣΫτ

Slide 19

Slide 19 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Slide 20

Slide 20 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Serverless Framework

Slide 21

Slide 21 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. ϓϥάΠϯγεςϜ Community Plugins

Slide 22

Slide 22 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Serverless Step Functions

Slide 23

Slide 23 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. ઃఆϑΝΠϧͷॻ͖ํ Reference to the functions Statemachine definition

Slide 24

Slide 24 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Step FunctionsͷΠϕϯτιʔεΛఆٛ Event Source Step Functions Workflow

Slide 25

Slide 25 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. ઃఆϑΝΠϧͷهड़ྔ͕গͳͯ͘ࡁΉ CloudFormation Serverless Step Functions

Slide 26

Slide 26 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Serverless Step Functions

Slide 27

Slide 27 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Serverless API Gateway Service Proxy https://github.com/horike37/serverless-apigateway-service-proxy

Slide 28

Slide 28 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. API GatewayͱAWSαʔϏεΛΠϯςάϨʔγϣϯ͢Δέʔε AWS Services API Gateway

Slide 29

Slide 29 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Lambdaແ͠ͰͷΠϯςάϨʔγϣϯ AWS Services API Gateway

Slide 30

Slide 30 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. γϯϓϧͳઃఆϑΝΠϧ

Slide 31

Slide 31 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Ϣʔεέʔε https://qiita.com/horike37/items/4da41b7859cbf7bb9baf

Slide 32

Slide 32 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. ΞʔΩςΫνϟ

Slide 33

Slide 33 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. ϑϩϯτ͔ΒAPIΛݺͼKinesisʹPVΛPUT

Slide 34

Slide 34 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. ͦͷଞίϯτϦϏϡʔγϣϯͨ͠OSS ɾServerless Dashboard For Atom ɾServerless Application Model ɾAlisProject/serverless-application ɾServerless Delete Log Groups ɾServerless Package Customizer ɾPynamoDB ɾSimple API Gateway

Slide 35

Slide 35 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. T O K Y O αʔόʔϨεͳOSS׆ಈΛܧଓతʹଓ͚Δ Ϟνϕʔγϣϯ

Slide 36

Slide 36 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. ΦϯϥΠϯͰίʔυΛத৺ʹܨ͕ΔίϛϡχςΟ

Slide 37

Slide 37 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. ϓϩάϥϚͱͯͦ͜͠ʹࢀՃ͢Δָ͠͞ ɾਓؾͷ͋ΔΦʔϓϯιʔεϓϩμΫτʹ͸εΩϧ͕༗Δਓ͕ू·ͬͯ͘Δɻ
 ɹͦ͏͍ͬͨਓ͔ΒιʔεͷϨϏϡʔΛड͚Δ͜ͱͰ֨ஈʹεΩϧΞοϓ͢Δ ɾԕ͘ͷࠃͷձͬͨ͜ͱͷͳ͍ਓ͔Βײँ͞ΕΔتͼ

Slide 38

Slide 38 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. ӳޠ͕Ͱ͖ͳ͍͜ͱ͸େ͖ͳ໰୊Ͱ͸ͳ͍ ɾ๻ࣗ਎͸೔ৗձ࿩͕ո͍͠Ϩϕϧ ɾ຋༁πʔϧ࢖͑͹ͷҙݟ΍ҙਤΛɹ
 ɹ఻͑Δ͜ͱ͸Մೳ
 ɹॏཁͳͷ͸͕͔͔࣌ؒͬͯ΋จষΛ
 ɹ૊ΈཱͯͯɺͦΕΒΛ఻͑Δ͜ͱ

Slide 39

Slide 39 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. ͜ΜͳϚΠϯυηοτͰOSSͱ޲͔͍߹͏ ɾਓؾͷ͋ΔΦʔϓϯιʔεϓϩμΫτ͸ɺ
 ɹҒ͍ͯ͘͢͝ਓ͚͕ͩͭͬͯ͘ΔͷͰ͸ͳ͍
 ɹ౰ͨΓલʹࣗ෼ͷҙࢤ͕൓өͰ͖Δ৔ॴͰ͋Δͱ͍͏͜ͱ ɾࣗ෼ͷॻ͍ͨίʔυ͕ྫ͑1ߦͩͱͯ͠΋ੈքதͷਓʹ࢖ΘΕͯɺ
 ɹͲ͔͜ͷ୭͔ͷ໾ʹཱͬͯΔ͔΋͠Εͳ͍ͱ૝૾ͯ͠ΈΔ͜ͱ

Slide 40

Slide 40 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. “ੈքΛม͑Δ͜ͱ͸೉͍͕͠ɺ ੈքΛ0.0000001mmྑ͘͢Δ͜ͱ͸ ࠓ೔ͷগ͠ͷ͕Μ͹ΓͰՄೳ͔΋͠Εͳ͍”

Slide 41

Slide 41 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. OSS׆ಈΛܧଓͤ͞Δʹ͸

Slide 42

Slide 42 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. ͳͥܧଓ͕೉͍͔͠ ɾऔΓ׶͑ͣެ։ͯ͠Έ͕ͨɺಛʹ୭͔Βͷ൓Ԡ΋ͳ͘๞͖ͯ͠·͏ ɾOSS׆ಈࣗମ͸ΊͪΌͪ͘Ό஍ຯ

Slide 43

Slide 43 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. ͲͷΑ͏ʹͦΕΛଧ։͢Δͷ͔ ɾ·ͣ͸ελʔ͕1000Ҏ্໨҆ʹΑؔ͘Θ͍ͬͯΔਓ͕ෳ਺͍Δɺ͔ͭ
 ɹhelp-wantedͳͲίϯτϦϏϡʔλͷೖΓޱΛ࡞ͬͯ͘ΕΔϓϩδΣΫτ
 ɹͰܧଓతʹϓϧϦΫΤετΛૹΓଓ͚Δ ɾઌૹΓʹ͞Ε͍ͯΔ໰୊Λ௵͍ͯ͘͠ਓͷ
 ɹଘࡏ͸ΊͪΌͪ͘Όॏཁ

Slide 44

Slide 44 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. ͲͷΑ͏ʹͦΕΛଧ։͢Δͷ͔ ɾܧଓ͢Δਓͷ਺͸ΊͪΌͪ͘Όগͳ͍ɻ
 ɹܧଓ͢Δ͜ͱͰ৴པ͞ΕͯίϛοτݖΛ෇༩͞ΕΔՄೳੑ͸͔ͳΓߴ͍ ɾίϛοτݖΛ΋Β͏ࠒʹ͸ɺͦͷOSSϓϩμΫτ಺ͰίϛϡχςΟ
 ɹͷ͍ͪһͱͯ͠ೝࣝ͞ΕΔɻࣗ෼ͷݟ͑Δܠ৭΋มΘΔ

Slide 45

Slide 45 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. ͲͷΑ͏ʹͦΕΛଧ։͢Δͷ͔ ɾͦͯ͠ɺϓϧϦΫΛग़͠ଓ͚ͨϓϩμΫτͷϓϥάΠϯͳͲ෇ਵͷ
 ɹOSSϓϩμΫτΛग़ͯ͠ΈΔ
 ɾίϛϡχςΟͷਓ͕ϑΟʔυόοΫͨ͠Γ
 ɹએ఻ͯ͘͠ΕͨΓɺҰॹʹ։ൃʹࢀՃͯ͘͠ΕͨΓͱ͍͏ɺ
 ɹྑ͍αΠΫϧ͕ճΔΑ͏ʹͳΓɺܧଓ͍͚ͯ͠ΔϞνϕʔγϣϯΛอͪ΍͘͢ͳΔ

Slide 46

Slide 46 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. αʔόʔϨεͷະདྷͱ Φʔϓϯιʔε

Slide 47

Slide 47 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Slide 48

Slide 48 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Cloud 2.0ͱ͸Ͳ͏͍ͬͨ΋ͷ͔ ɾαʔόʔϨεͰࣗ෼ͨͪͰ੹຿Λ࣋ͨͳ͍ͱ͍͚ͳ͍ͷͬͯίʔυͷ෦෼ͩΑͶ
 ɹ͔ͩΒͦͷ੹຿͔Β։์͞ΕΔͨΊʹΑΓগͳ͍ίʔυΛ๬ΉΑͶ ɾͦͯͦ͠ͷଟ͘͸ϚωʔδυαʔϏεͰ͸࣮ݱͰ͖ͳ͍෦෼Λ
 ɹίʔυͰอ؅ͯ͠Δέʔε͕ଟ͘ɺͦ͜ʹେ͖ͳՁ஋͸ͳ͍ΑͶ ɾͭ·Γ“ڀۃͷαʔόʔϨεΞϓϦέʔγϣϯʹ͸
 ɹ·ͬͨ͘ίʔυ͕ͳ͍ΜͩΑ”

Slide 49

Slide 49 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Cloud 2.0ͱ͸Ͳ͏͍ͬͨ΋ͷ͔ ɾαʔόʔϨεͷૂ͍͸ΑΓίʔυΛগͳ͘Ϋϥ΢υͷαʔϏεΛ
 ɹग़དྷΔݶΓ࢖͏͜ͱͩΑ
 ɹ͜ΕΛվΊͯ࣍ੈ୅ͷΫϥ΢υͷ࢖͍ํͱͯ͠“Cloud 2.0"ͱ໊෇͚ͯΈΑ͏ ɾ“Cloud 2.0”࣌୅ͷΩϯά͸ͩΕ͔ʁͦΕ͸ʮ֦ுੑͱՄ༻ੑͷߴ͍
 ɹΫϥ΢υαʔϏεͷར఺Λཧղͯ͠ɺ
 ɹͦΕΒΛ݁ͼ͚ͭΔͨΊͷ࠷খݶ࠷దԽ͞Εͨ
 ɹίʔυΛॻ͘ਓͨͪʯͩͱ͓΋͏Α

Slide 50

Slide 50 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. “ϑϧϚωʔδυαʔϏεΛ͏·͘ར༻͢Δ͜ͱͰɺ ΞϓϦέʔγϣϯϩδοΫͷ੹຿ͷଟ͘ΛΫϥ΢υʹ೚ͤ
 ΑΓϏδωεόϦϡʔΛग़ͨ͢Ίͷ࢓ࣄʹूத͢Δ͜ͱ“ Cloud 2.0࣌୅ͷϚΠϯυηοτ

Slide 51

Slide 51 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. ͦΜͳมԽʹͲͷΑ͏ʹ޲͖߹͏͔ ɾCloud2.0ͷ࣌୅Ͱ΋ɺίʔυΛॻ͘ͱ͍͏͜ͱ͕ຊ࣭తʹͳ͘ͳ͍ͬͯ͘ͱ͍͏
 ɹ͜ͱ͸ͳ͍ɻԿނͳΒΫϥ΢υαʔϏεؚΊͨ͜ͷੈͷιϑτ΢ΣΞ͸
 ɹ͢΂ͯϓϩάϥϜͰಈ͍͍ͯΔͱ͍͏ࣄ࣮ ɾίʔυΛॻ͘ࢹ఺Λม͑ͯΈΔɻ୯ൃͰೲ඼͢Δ࢓ࣄͷίʔυʹՁ஋͸
 ɹ͋Δͷ͔ʁܧଓతʹԿ͔ΛղܾͰ͖ΔΑ͏ͳ͜ͱΛίʔυͰදݱͯ͠
 ɹ͍͘ํ͕Α͍ͷͰ͸

Slide 52

Slide 52 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. OSSͰ͋Δͱ͍͏νϟϯε ɾΫϥ΢υͷαʔϏε͸೔ʑ৽͍͠΋ͷ͕ϦϦʔε͞ΕΔɻ
 ɹ৽͍͠΋ͷ͕ग़Δͱ͍͏͜ͱ͸ͦΕʹ෇ਵͯ͠
 ɹ৽ͨͳ໰୊΋ൃੜ͢Δͱ͍͏͜ͱɻ໰୊ͱ͸νϟϯεͰ͋Δͱ͍͏͜ͱ
 
 ɾOSSͰࣗ෼ͷॻ͘ίʔυ͕ଟ͘ͷਓʹӨڹΛ༩͑ΒΕΔ͸ͣ

Slide 53

Slide 53 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. One more thing…

Slide 54

Slide 54 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. https://tokyo.serverlessdays.io/ ೔ຊͰServerless Days΍Γ·͢

Slide 55

Slide 55 text

Thank you! © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. ງՈོ޺ [email protected]