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

サーバレスでブルーグリーンデプロイしてみた

E63c0cf4a77b1799e02f97689db83d91?s=47 kaidouji85
January 28, 2022

 サーバレスでブルーグリーンデプロイしてみた

E63c0cf4a77b1799e02f97689db83d91?s=128

kaidouji85

January 28, 2022
Tweet

More Decks by kaidouji85

Other Decks in Technology

Transcript

  1. αʔόϨεͰ ϒϧʔάϦʔϯσϓϩΠͯ͠Έͨ  ۚ  ஛಺ɹ༎հ

  2. ࣗݾ঺հ ஛಺ɹ༎հ ϓϩάϥϚʔ झຯ͸ήʔϜ੍࡞ɺ೔ຊఉԂؑ৆ɺ 
 ྺ࢙εϙοτ८Γ

  3. ࡞ͬͨγεςϜͷ঺հ

  4. IUUQTZPVUVCFVS1B3+:B(

  5. ղઆ ࣗ࡞ήʔϜʮ(ϒϨΠόʔόʔετʯͷωοτରઓػೳ όοΫΤϯυ؀ڥ͸શͯαʔόϨʔεΞʔΩςΫνϟ "84-BNCEBɺ"84'BSHBUFɺ"VUIΛ૊Έ߹Θͤͨ؀ڥ

  6. ΞʔΩςΫνϟ

  7. ϩάΠϯೝূ 34ॺ໊+85ൃߦ +8,4औಘ +85ݕূ ֤छήʔϜ"1*ݺͼग़͠ "1*ʹରԠͨ͠ -BNCEBݺͼग़͠ ֤छ%#ૢ࡞ ϚονϝΠΫͷ ϙʔϦϯά

    ϚονϝΠΫ ࠂ஌ (ϒϨ#"1*αʔό
  8. "65) "84"1*(BUFXBZ "84-BNCEB "84%ZOBNP%# "84'BSHBUF ຌྫ

  9. αʔόϨεͱ͸ αʔό؅ཧʹ࿑ྗΛ͔͚ͣʹɺΞϓϦ͚ͩʹઐ೦Ͱ͖Δ࢓૊Έ ओͳܗࣜ͸'BB4ɼ$BB4 ݸਓతʹ͸)FSPLVͳͲͷ1BB4ͷਐԽܥͩͱײͨ͡

  10. 'BB4ͱ͸ 'VODUJPOTBTB4TSWJDFͷུ "84-BNCEBɺ"[VSF'VODUJPOTɺ(PPHMF$MPVE'VODUJPOTͳͲ ϞδϡʔϧΛΫϥ΢υʹΞοϓϩʔυͨ͠Βɺͦͷ··ಈ͘Πϝʔδ

  11. ϩάΠϯೝূ 34ॺ໊+85ൃߦ +8,4औಘ +85ݕূ ֤छήʔϜ"1*ݺͼग़͠ "1*ʹରԠͨ͠ -BNCEBݺͼग़͠ ֤छ%#ૢ࡞ ϚονϝΠΫͷ ϙʔϦϯά

    ϚονϝΠΫ ࠂ஌ (ϒϨ#"1*αʔό
  12. ϩάΠϯೝূ 34ॺ໊+85ൃߦ +8,4औಘ +85ݕূ ֤छήʔϜ"1*ݺͼग़͠ "1*ʹରԠͨ͠ -BNCEBݺͼग़͠ ֤छ%#ૢ࡞ ϚονϝΠΫͷ ϙʔϦϯά

    ϚονϝΠΫ ࠂ஌ (ϒϨ#"1*αʔό 'BB4 "84-BNCEB
  13. $BB4ͱ͸ $POUBJOFSBTB4FSWJDFͷུ "84'BSHBUFɺ(PPHMF$MPVE3VOͳͲ %PDLFSΠϝʔδ͕ͦͷ··Ϋϥ΢υͰಈ͘Πϝʔδ

  14. ϩάΠϯೝূ 34ॺ໊+85ൃߦ +8,4औಘ +85ݕূ ֤छήʔϜ"1*ݺͼग़͠ "1*ʹରԠͨ͠ -BNCEBݺͼग़͠ ֤छ%#ૢ࡞ ϚονϝΠΫͷ ϙʔϦϯά

    ϚονϝΠΫ ࠂ஌ (ϒϨ#"1*αʔό
  15. ϩάΠϯೝূ 34ॺ໊+85ൃߦ +8,4औಘ +85ݕূ ֤छήʔϜ"1*ݺͼग़͠ "1*ʹରԠͨ͠ -BNCEBݺͼग़͠ ֤छ%#ૢ࡞ ϚονϝΠΫͷ ϙʔϦϯά

    ϚονϝΠΫ ࠂ஌ (ϒϨ#"1*αʔό $BB4 "84'BSHBUF
  16. खಈͰαʔόϨε -BNCEBɺ'BSHBUFΛखಈͰ࡞Δ͜ͱ͸Ͱ͖Δ ྆ํͱ΋ઃఆ߲໨͕ଟͯ͘Ҏ֎ͱେม ͔͠΋ɺఆظతʹը໘ߏ੒͕มΘΔ Ҏ্ΑΓɺϓϩάϥϜमਖ਼ɺઃఆมߋͳͲͷϦϦʔε͕େม

  17. ͦ͏ͩࣗಈԽ͠Α͏

  18. "84-BNCEB 4FSWFSMFTT'SBNFXPSL "84.BSHBUF "84$%,

  19. 4FSWFSMFTT'SBNFXPSL TMT ͱ͸ TFSWFSMFTTZNMʹ"1*ͱιʔείʔυͷରԠΛఆٛ͢Ε͹ɺ 
 ޙ͸શ෦ࣗಈͰ΍ͬͯ͘ΕΔπʔϧ ؀ڥ͕ͳ͚Ε͹৽ن࡞੒ɺଘࡏ͢Ε͹ఆٛ௨Γʹߋ৽ͯ͘͠ΕΔ TMTΛ$*$%ʹ૊ΈࠐΊ͹ɺࣗಈσϓϩΠ͕࣮ݱͰ͖Δ

  20. TFSWFSMFTTZNM

  21. FOUFSDBTVBMNBUDIKT

  22. "84$%,ͱ͸ ίʔυͰ"84Πϯϑϥ͕ఆٛͰ͖Δπʔϧ 'BSHBUFɺ71$ͳͲͷయܕతͳઃఆ͕ϥΠϒϥϦԽ͞Ε͍ͯΔͷͰɺ ͪΐͬͱઃఆΛม͑Δͱ͔͕؆୯ʹͰ͖Δ TMTͱಉ͡Ͱ؀ڥ͕ແ͚Ε͹৽ن࡞੒ɺ͋Ε͹ߋ৽͢Δ "84$%,΋$*$%ʹ૊ΈࠐΜͰɺࣗಈσϓϩΠ͕Ͱ͖Δ

  23. BXTWQDTUBDLUT

  24. CBDLFOEFDTTUBDLUT

  25. ;ͱࢥͬͨ͜ͱ طଘ؀ڥͷߋ৽ɺ৽ن؀ڥͷ࡞੒ͱ΋ʹࣗಈͰग़དྷΔ (ϒϨ#ͩͱ؀ڥߋ৽ͷํ͕͕͔͔࣌ؒͬͨ ͳΒɺϦϦʔεຖʹ৽ن؀ڥ࡞ͬͯɺϩʔυόϥϯαͰ 
 ੾Γସ͑͹͍͍ͷͰ͸ʁ

  26. ϒϧʔάϦʔϯσϓϩΠ

  27. -# ݱߦ؀ڥ

  28. -# ݱߦ؀ڥ ৽ن؀ڥ ৽͘͠؀ڥ࡞੒͢Δ

  29. -# ݱߦ؀ڥ ৽ن؀ڥ -#ͷ޲͖ઌ੾Γସ͑

  30. ϒϧʔάϦʔϯσϓϩΠͱ͸ ϦϦʔεຖʹ৽ن؀ڥΛ࡞੒͠ɺৼΓ෼͚ઌΛม͑ΔσϓϩΠํ๏ ϒϧʔ؀ڥ ݱߦ؀ڥ ͔ΒάϦʔϯ؀ڥ ৽ن؀ڥ ʹ੾Γସ͑Δ͜ͱ͕ 
 ໊લͷ༝དྷ

  31. ϒϧʔάϦʔϯσϓϩΠͷ͍͍͜ͱ  ϦϦʔεલʹ͋Δఔ౓ͷಈ࡞֬ೝ͕Ͱ͖Δ  ϦϦʔε౰೔ͷ࡞ۀָ͕  ϦϦʔε੾Γ໭͠΋؆୯ʹͰ͖Δ

  32. ϒϧʔάϦʔϯσϓϩΠͷ͍͍͜ͱ  ϦϦʔεલʹ͋Δఔ౓ͷಈ࡞֬ೝ͕Ͱ͖Δ  ϦϦʔε౰೔ͷ࡞ۀָ͕  ϦϦʔε੾Γ໭͠΋؆୯ʹͰ͖Δ

  33. -# ݱߦ؀ڥ ৽ن؀ڥ ݱߦ؀ڥʹӨڹͳ͘ಈ࡞֬ೝ ͬͪ͜ʹӨڹ͸ͳ͍ -#ܦ༝ͷػೳ͸ ςετͰ͖ͳ͍

  34. ϦϦʔεલಈ࡞֬ೝ ཧ࿦্͸ϩʔυόϥϯαܦ༝ͷػೳҎ֎͸ɺ 
 ͢΂ͯϦϦʔεલʹಈ࡞֬ೝͰ͖Δ ૄ௨֬ೝɺࢀরػೳ֬ೝͳͲΛϦϦʔεલʹຊ൪؀ڥʹӨڹΛ 
 ༩͑Δ͜ͱͳ͘ग़དྷΔͷ͸େ͖͍ ͜͜ͰόάΛݟ͚ͭͨΒɺमਖ਼ޙʹ·ͨ؀ڥΛ࡞Ε͹͍͍͚ͩ

  35. ϒϧʔάϦʔϯσϓϩΠͷ͍͍͜ͱ  ϦϦʔεલʹ͋Δఔ౓ͷಈ࡞֬ೝ͕Ͱ͖Δ  ϦϦʔε౰೔ͷ࡞ۀָ͕  ϦϦʔε੾Γ໭͠΋؆୯ʹͰ͖Δ

  36. -# ݱߦ؀ڥ ৽ن؀ڥ ಈ࡞֬ೝࡁ

  37. -# ݱߦ؀ڥ ৽ن؀ڥ ಈ࡞֬ೝࡁ -#੾Γସ͑

  38. ϦϦʔε౰೔ͷ࡞ۀ ϩʔυόϥϯαͷ޲͖ઌΛ৽ن؀ڥʹ੾Γସ͑Ε͹ϦϦʔε׬ྃ ͋ͱ͸ϩʔυόϥϯαܦ༝Ͱͷૄ௨֬ೝΛ͢Δ͚ͩ ϦϦʔεલ೔·Ͱʹɺػೳςετ͸ऴΘΒͤͯ͋ΔͷͰؾָ͕࣋ͪ

  39. ϒϧʔάϦʔϯσϓϩΠͷ͍͍͜ͱ  ϦϦʔεલʹ͋Δఔ౓ͷಈ࡞֬ೝ͕Ͱ͖Δ  ϦϦʔε౰೔ͷ࡞ۀָ͕  ϦϦʔε੾Γ໭͠΋؆୯ʹͰ͖Δ

  40. -# چ؀ڥ ݱߦ؀ڥ

  41. -# چ؀ڥ ݱߦ؀ڥ -#੾Γସ͑

  42. ੾Γ໭͠ํ๏ ϩʔυόϥϯαͷ޲͖ઌΛچ؀ڥʹৼΓ෼͚Ε͹ɺ੾Γ໭͠׬ྃ چ؀ڥɺ৽ن؀ڥͰϦιʔεΛڞ༗͍ͯ͠Δ৔߹ɺ 
 ԿΒ͔ͷิਖ਼࡞ۀ͕ඞཁʹͳΔ͔΋͠Εͳ͍ ͦΕͰ΋ɺαʔόͷঢ়ଶΛલʹ໭͢ͱ͍͏ࣄͳΒɺ 
 ϩʔυόϥϯα੾Γସ͑Ͱ0,ͳͷ͸৺ڧ͍

  43. (ϒϨ#ͷϦϦʔεϑϩʔ

  44. ݱ ߦ ؀ ڥ ϑϩϯτ༻(JU ϑϩϯτ༻ $PEF1JQFMJOF ؀ڥ໊ ݱߦ؀ڥ "1*༻(JU

    "1*༻ $PEF1JQFMJOF
  45. ݱ ߦ ؀ ڥ ϑϩϯτ༻(JU ϑϩϯτ༻ $PEF1JQFMJOF ؀ڥ໊ ৽ن؀ڥ ؀ڥ໊ͷ࿦ཧ໊Λߋ৽͢Δ

    "1*༻(JU "1*༻ $PEF1JQFMJOF
  46. ݱ ߦ ؀ ڥ ϑϩϯτ༻(JU ϑϩϯτ༻ $PEF1JQFMJOF ؀ڥ໊ ৽ن؀ڥ 

    ؀ڥ໊औಘ "1*༻(JU "1*༻ $PEF1JQFMJOF  NBTUFSίϛοτ  δϣϒΩοΫ  ؀ڥ࡞੒
  47. ݱ ߦ ؀ ڥ ৽ ن ؀ ڥ ϑϩϯτ༻(JU ϑϩϯτ༻

    $PEF1JQFMJOF ؀ڥ໊ ৽ن؀ڥ  ؀ڥ໊औಘ "1*༻(JU "1*༻ $PEF1JQFMJOF  NBTUFSίϛοτ  δϣϒΩοΫ  ؀ڥ࡞੒  ଘࡏ͠ͳ͍؀ڥ໊ͳͷͰ৽͘͠࡞Δ
  48. ݱ ߦ ؀ ڥ ৽ ن ؀ ڥ ϑϩϯτ༻(JU ϑϩϯτ༻

    $PEF1JQFMJOF ؀ڥ໊ ৽ن؀ڥ "1*༻(JU "1*༻ $PEF1JQFMJOF
  49. ݱ ߦ ؀ ڥ ৽ ن ؀ ڥ ϑϩϯτ༻(JU ϑϩϯτ༻

    $PEF1JQFMJOF ؀ڥ໊ ৽ن؀ڥ  ؀ڥ໊औಘ "1*༻(JU "1*༻ $PEF1JQFMJOF  NBTUFSίϛοτ  δϣϒΩοΫ  63-औಘ
  50. ݱ ߦ ؀ ڥ ৽ ن ؀ ڥ ϑϩϯτ༻(JU ϑϩϯτ༻

    $PEF1JQFMJOF ؀ڥ໊ ৽ن؀ڥ  ؀ڥ໊औಘ "1*༻(JU "1*༻ $PEF1JQFMJOF  NBTUFSίϛοτ  δϣϒΩοΫ  63-औಘ  63-ॻ͖׵͑
  51. ݱ ߦ ؀ ڥ ৽ ن ؀ ڥ ϑϩϯτ༻(JU ϑϩϯτ༻

    $PEF1JQFMJOF ؀ڥ໊ ৽ن؀ڥ "1*༻(JU "1*༻ $PEF1JQFMJOF
  52. ຌྫ (JUϦϙδτϦ "84$PEF1JQFMJOF "844ZTUFN.BOBHFS

  53. ࠓ೔ͷαϯϓϧ

  54. (ϒϨ# ݕࡧ

  55. ίʔυ ϒϥ΢β 
 IUUQTHJUIVCDPNLBJEPVKJTUVEZUISFFKT "1*αʔό 
 IUUQTHJUIVCDPNLBJEPVKJHCSBWFSCVSTUOFUXPSL

  56. ࢀߟจݙ "84-BNCEB 
 IUUQTBXTBNB[PODPNKQMBNCEB "84'BSHBUF 
 IUUQTBXTBNB[PODPNKQGBSHBUF 4FSWFSMFTT'SBNFXPSL 
 IUUQTXXXTFSWFSMFTTDPN

  57. ࢀߟจݙ "84$%, 
 IUUQTBXTBNB[PODPNKQDEL ϒϧʔάϦʔϯσϓϩΠϝϯτ 
 IUUQTYUFDIOJLLFJDPNBUDMOYULFZXPSE 

  58. ࠓ೔ͷ·ͱΊ

  59. ࠓ೔ͷ·ͱΊ άϦʔϯϒϧʔσϓϩΠͱ͸ɺࣄલʹϦϦʔε؀ڥΛ࡞੒͠ɺ 
 ϦϦʔε౰೔͸-#੾Γସ͚͑ͩ͢ΔϦϦʔεํ๏Ͱ͋Δ άϦʔϯϒϧʔσϓϩΠͳΒϦϦʔεલʹ৭ʑͳςετ͕Ͱ͖ͯɺ 
 ੾Γ໭͠΋-#੾Γସ͚͑ͩͰࡁΉ 4FSWFSMFTT'SBNFXPSLɺ"84$%,Λ࢖͑͹ɺ 
 ϦϦʔε؀ڥͷ৽ن࡞੒͕ࣗಈͰग़དྷΔ

  60. ͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠