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

20210518_shikujiri_justincase

diostray
October 18, 2021

 20210518_shikujiri_justincase

diostray

October 18, 2021
Tweet

More Decks by diostray

Other Decks in Programming

Transcript

  1.  ࣗݾ঺հখࠤ໺ ༸ 04"/0 )JSPTIJ n 'VMM4UBDL&OHJOFFS ࣗশ u "OESPJEΞϓϦ

    ˠ8FCϑϩϯτ ˠόοΫΤϯυͷςοΫϦʔυ u ΠϯϑϥߏஙʙόοΫΤϯυʙ8FCϑϩϯτ ϞόΠϧΞϓϦ ·Ͱ͍͍ͩͨͳΜͰ΋Ͱ͖Δ u ιϑτ΢ΣΞΤϯδχΞҰے೥ͪΐͬͱ n ௕͍͜ͱ΍͖ͬͯͨͷ͸ +BWB+BWB4DSJQU u ,PUMJO͸͍͍ͧ େ੠ u "OESPJE+FUQBDL΋͍͍ͧ u $͸͍͍ͧ খ੠
  2.  ձࣾ঺հKVTU*O$BTF 5FDIOPMPHJFT 5FDI4UBDLT 8FCGSPOUFOE .PCJMFBQQT #BDLFOE n 3FBDU n

    5ZQF4DSJQU n 7FSDFM /FYUKT *OGSBTUSVDUVSF n ,PUMJO +FUQBDL n 4XJGU n 'JSFCBTF n ,PUMJO n LUPS FYQPTFE n 1ZUIPO n "84 n &$4 GBSHBUF n $%, n %BUBEPH n .BDLFSFM ॿ͚ΒΕɺॿ͚ΔتͼΛɺ͢΂ͯͷਓ΁ɻ
  3.  σϓϩΠϑϩʔ 本番環境 Amazon CloudFront Amazon Simple Storage Service (Amazon

    S3) ステージング環境 Amazon CloudFront Amazon Simple Storage Service (Amazon S3)
  4.  σϓϩΠϑϩʔ 本番環境 Amazon CloudFront Amazon Simple Storage Service (Amazon

    S3) ステージング環境 Amazon CloudFront Amazon Simple Storage Service (Amazon S3) ϝΠϯϒϥϯν΁ͷϚʔδΛτϦΨʔʹͯ͠ $JSDMF$*ͷϫʔΫϑϩʔىಈ
  5.  σϓϩΠϑϩʔ 本番環境 Amazon CloudFront Amazon Simple Storage Service (Amazon

    S3) ステージング環境 Amazon CloudFront Amazon Simple Storage Service (Amazon S3) ϝΠϯϒϥϯν΁ͷϚʔδΛτϦΨʔʹͯ͠ $JSDMF$*ͷϫʔΫϑϩʔىಈ $JSDMF$*ͷϫʔΫϑϩʔ͸ຊ͋Δ ຊ൪؀ڥͱεςʔδϯά؀ڥ $JSDMF$*ͰϏϧυͨ͠41"Λ4ʹΞοϓϩʔυ ͦͷޙͰ$MPVE'SPOUͷΩϟογϡ࡟আ
  6.  ͕͜͜ͱͯ΋͋΍͍͠ʜ 本番環境 Amazon CloudFront Amazon Simple Storage Service (Amazon

    S3) ステージング環境 Amazon CloudFront Amazon Simple Storage Service (Amazon S3) ϝΠϯϒϥϯν΁ͷϚʔδΛτϦΨʔʹͯ͠ $JSDMF$*ͷϫʔΫϑϩʔىಈ $JSDMF$*ͷϫʔΫϑϩʔ͸ຊ͋Δ ຊ൪؀ڥͱεςʔδϯά؀ڥ $JSDMF$*ͰϏϧυͨ͠41"Λ4ʹΞοϓϩʔυ ͦͷޙͰ$MPVE'SPOUͷΩϟογϡ࡟আ
  7.  ֤؀ڥͷઃఆ৘ใ͸ͲͷΑ͏ʹઃఆ͍ͯͨ͠ʁ Ϗϧυ࣌ͷྲྀΕ ᶄ zXFCQBDLCVJMEzΛ࣮ߦ ᶅ FOWϑΝΠϧΛࢀরͯ͠ EPUFOW ͕Ϗϧυ݁ՌʹຒΊࠐΉ ᶃ

    ؀ڥґଘͷઃఆϑΝΠϧΛ FOW΁ίϐʔ ϏϧυΩϟογϡΛੜ੒͢Δ )BSE4PVSDF8FCQBDL1MVHJO Λ࢖͍ͬͯͨʢ։ൃޮ཰޲্ͷͨΊʣ
  8.  ֤؀ڥͷઃఆ৘ใ͸ͲͷΑ͏ʹઃఆ͍ͯͨ͠ʁ Ϗϧυ࣌ͷྲྀΕ ᶄ zXFCQBDLCVJMEzΛ࣮ߦ ᶅ FOWϑΝΠϧΛࢀরͯ͠ EPUFOW ͕Ϗϧυ݁ՌʹຒΊࠐΉ ᶃ

    ؀ڥґଘͷઃఆϑΝΠϧΛ FOW΁ίϐʔ OPEF@NPEVMFT ͷԼ ʹϏϧυΩϟογϡΛอଘ͢Δ ˞ FOW ؀ڥґଘͷઃఆϑΝΠϧ ΛؚΉ ϏϧυΩϟογϡΛੜ੒͢Δ )BSE4PVSDF8FCQBDL1MVHJO Λ࢖͍ͬͯͨʢ։ൃޮ཰޲্ͷͨΊʣ
  9.  ֤؀ڥͷઃఆ৘ใ͸ͲͷΑ͏ʹઃఆ͍ͯͨ͠ʁ Ϗϧυ࣌ͷྲྀΕ ᶄ zXFCQBDLCVJMEzΛ࣮ߦ ᶅ FOWϑΝΠϧΛࢀরͯ͠ EPUFOW ͕Ϗϧυ݁ՌʹຒΊࠐΉ ᶃ

    ؀ڥґଘͷઃఆϑΝΠϧΛ FOW΁ίϐʔ $JSDMF$* ͷϫʔΫϑϩʔ͸ OPEF@NPEVMFT ഑ԼΛΩϟο γϡͱͯ͠อଘ͍ͯͨ͠ ϏϧυΩϟογϡΛੜ੒͢Δ )BSE4PVSDF8FCQBDL1MVHJO Λ࢖͍ͬͯͨʢ։ൃޮ཰޲্ͷͨΊʣ OPEF@NPEVMFT ͷԼ ʹϏϧυΩϟογϡΛอଘ͢Δ ˞ FOW ؀ڥґଘͷઃఆϑΝΠϧ ΛؚΉ
  10.  ֤؀ڥͷઃఆ৘ใ͸ͲͷΑ͏ʹઃఆ͍ͯͨ͠ʁ Ϗϧυ࣌ͷྲྀΕ ᶄ zXFCQBDLCVJMEzΛ࣮ߦ ᶅ FOWϑΝΠϧΛࢀরͯ͠ EPUFOW ͕Ϗϧυ݁ՌʹຒΊࠐΉ ᶃ

    ؀ڥґଘͷઃఆϑΝΠϧΛ FOW΁ίϐʔ $JSDMF$* ͷϫʔΫϑϩʔͷΩϟογϡ͸ ϒϥϯν໊ ͱ ZBSOMPDL ͷϋογϡ஋ Λύεʹ͍ͯͨ͠ ϏϧυΩϟογϡΛੜ੒͢Δ )BSE4PVSDF8FCQBDL1MVHJO Λ࢖͍ͬͯͨʢ։ൃޮ཰޲্ͷͨΊʣ $JSDMF$* ͷϫʔΫϑϩʔ͸ OPEF@NPEVMFT ഑ԼΛΩϟο γϡͱͯ͠อଘ͍ͯͨ͠ OPEF@NPEVMFT ͷԼ ʹϏϧυΩϟογϡΛอଘ͢Δ ˞ FOW ؀ڥґଘͷઃఆϑΝΠϧ ΛؚΉ
  11.  ݪҼʹഭΔ ࣌ܥྻʹண໨ͯ͠ϏϧυγʔέϯεΛݟͯΈΑ͏ લճͷϏϧυ Ϗϧυͱ σϓϩΠ $JSDMF$*ͷ Ωϟογϡऔಘ $JSDMF$*ͷ Ωϟογϡอଘ

    εςʔδϯά؀ڥ޲͚ͷϫʔΫϑϩʔ Ϗϧυͱ σϓϩΠ $JSDMF$*ͷ Ωϟογϡऔಘ $JSDMF$*ͷ Ωϟογϡอଘ ຊ൪؀ڥ޲͚ͷϫʔΫϑϩʔ ࠓճͷϏϧυ Ϗϧυͱ σϓϩΠ $JSDMF$*ͷ Ωϟογϡऔಘ $JSDMF$*ͷ Ωϟογϡอଘ εςʔδϯά؀ڥ޲͚ͷϫʔΫϑϩʔ Ϗϧυͱ σϓϩΠ $JSDMF$*ͷ Ωϟογϡऔಘ $JSDMF$*ͷ Ωϟογϡอଘ ຊ൪؀ڥ޲͚ͷϫʔΫϑϩʔ
  12.  ݪҼʹഭΔ ࣌ܥྻʹண໨ͯ͠ϏϧυγʔέϯεΛݟͯΈΑ͏ લճͷϏϧυ Ϗϧυͱ σϓϩΠ $JSDMF$*ͷ Ωϟογϡऔಘ $JSDMF$*ͷ Ωϟογϡอଘ

    εςʔδϯά؀ڥ޲͚ͷϫʔΫϑϩʔ Ϗϧυͱ σϓϩΠ $JSDMF$*ͷ Ωϟογϡऔಘ $JSDMF$*ͷ Ωϟογϡอଘ ຊ൪؀ڥ޲͚ͷϫʔΫϑϩʔ ࠓճͷϏϧυ Ϗϧυͱ σϓϩΠ $JSDMF$*ͷ Ωϟογϡऔಘ $JSDMF$*ͷ Ωϟογϡอଘ εςʔδϯά؀ڥ޲͚ͷϫʔΫϑϩʔ Ϗϧυͱ σϓϩΠ $JSDMF$*ͷ Ωϟογϡऔಘ $JSDMF$*ͷ Ωϟογϡอଘ ຊ൪؀ڥ޲͚ͷϫʔΫϑϩʔ $JSDMF$*ͷΩϟογϡύε͸Ұॹ ˞ ZBSOMPDL ͕มΘΒͳ͚Ε͹
  13.  ݪҼʹഭΔ ࣌ܥྻʹண໨ͯ͠ϏϧυγʔέϯεΛݟͯΈΑ͏ લճͷϏϧυ Ϗϧυͱ σϓϩΠ $JSDMF$*ͷ Ωϟογϡऔಘ εςʔδϯά؀ڥ޲͚ͷϫʔΫϑϩʔ Ϗϧυͱ

    σϓϩΠ $JSDMF$*ͷ Ωϟογϡऔಘ $JSDMF$*ͷ Ωϟογϡอଘ ຊ൪؀ڥ޲͚ͷϫʔΫϑϩʔ ࠓճͷϏϧυ Ϗϧυͱ σϓϩΠ $JSDMF$*ͷ Ωϟογϡऔಘ $JSDMF$*ͷ Ωϟογϡอଘ εςʔδϯά؀ڥ޲͚ͷϫʔΫϑϩʔ Ϗϧυͱ σϓϩΠ $JSDMF$*ͷ Ωϟογϡऔಘ $JSDMF$*ͷ Ωϟογϡอଘ ຊ൪؀ڥ޲͚ͷϫʔΫϑϩʔ $JSDMF$*ͷΩϟογϡύε͸Ұॹ ˞ ZBSOMPDL ͕มΘΒͳ͚Ε͹ $JSDMF$*ͷ Ωϟογϡอଘ ͬͪ͜ͷํ͕஗͔ͬͨΒʁ
  14.  ݪҼʹഭΔ ࣌ܥྻʹண໨ͯ͠ϏϧυγʔέϯεΛݟͯΈΑ͏ લճͷϏϧυ Ϗϧυͱ σϓϩΠ $JSDMF$*ͷ Ωϟογϡऔಘ εςʔδϯά؀ڥ޲͚ͷϫʔΫϑϩʔ Ϗϧυͱ

    σϓϩΠ $JSDMF$*ͷ Ωϟογϡऔಘ $JSDMF$*ͷ Ωϟογϡอଘ ຊ൪؀ڥ޲͚ͷϫʔΫϑϩʔ ࠓճͷϏϧυ Ϗϧυͱ σϓϩΠ $JSDMF$*ͷ Ωϟογϡऔಘ $JSDMF$*ͷ Ωϟογϡอଘ εςʔδϯά؀ڥ޲͚ͷϫʔΫϑϩʔ Ϗϧυͱ σϓϩΠ $JSDMF$*ͷ Ωϟογϡอଘ ຊ൪؀ڥ޲͚ͷϫʔΫϑϩʔ $JSDMF$*ͷΩϟογϡύε͸Ұॹ ˞ ZBSOMPDL ͕มΘΒͳ͚Ε͹ $JSDMF$*ͷ Ωϟογϡอଘ ͬͪ͜ͷํ͕஗͔ͬͨΒʁ $JSDMF$*ͷ Ωϟογϡऔಘ ͜͜Ͱ࢖ΘΕΔϏϧυΩϟογϡ͸Ͳ͏ͳ͍ͬͯΔʁ ͦͷޙͰ EPUFOW ͕ຒΊࠐΉ؀ڥґଘͷઃఆ͸Ͳ͏ͳΔʁ
  15.  ֶͼ n $*಺ͷΩϟογϡ͸େࣄɻ͕ͩ༧ظ͠ͳ͍λΠϛϯάͰյΕΔͷͰऔѻ஫ҙɻ u ࠓճͷ৔߹͸ϏϧυΩϟογϡ͕ႈ౳Ͱ͸ͳ͔ͬͨͷͰɺյΕ΍͍͢ঢ়گԼʹ͋ͬͨɻ n Ωϟογϡ͍ͯ͠Δத਎͸αϘΒ͖ͣͪΜͱ֬ೝ͠Α͏ɻ u ΞϓϦέʔγϣϯ͚ͩͰ͸ͳ͘ɺϥΠϒϥϦ͕ੜ੒ͯ͠ݟ͑ʹ͍͘Ωϟογϡ΋͋Δɻ

    n ։ൃ༻ͷઃఆͱσϓϩΠ༻ͷઃఆΛҰॹʹ͢Δͷ͸ѱखɻ u લ͔Β΍Γ͔͕ͨͬͨɺٕज़ݕূͳͲΛཧ༝ʹ์ஔ͍ͯͨ݁͠Ռ͕͜ΕͩΑʂʂʂʂʂʂʂʂʂ u ެࣜϖʔδʹ͸ʮ෼ׂ͢Δ͜ͱΛਪ঑ʯͱॻ͍ͯ͋Δɻྑ͍ࢠͷօ༷͸΍Βͳ͍Α͏ʹɻ l IUUQTXFCQBDLKTPSHHVJEFTQSPEVDUJPO u XFCQBDL Ͱ͸ϏϧυΩϟογϡपΓ͕େ෯ʹมΘ͍ͬͯΔɻಉ͡஍ཕΛ౿Έൈ͘ํ͸গͳ͘ͳͬͨ ͸ͣɻ