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

CI/CD/インフラ勉強会Vol4 Amazon ECS編 Part1

CI/CD/インフラ勉強会Vol4 Amazon ECS編 Part1

Amazon ECS回です。あまりにやること多いので二つに分けました。
今回は仮想化のおさらいをしてからECSのはじめだけ。

Shohei Kobayashi

June 26, 2022
Tweet

More Decks by Shohei Kobayashi

Other Decks in Programming

Transcript

  1. $*Ͱ΍Διʔείʔυద༻ϑϩʔجຊ "NB[PO&$4 "QQMJDBUJPO-PBE#BMBODFS 3%4"VSPSB ։ൃ͸ࣗಈɾຊ൪͸࠷ऴεςοϓͷΈखಈ όοΫΤϯυ ։ൃऀͷϩʔΧϧ ୯ମςετ ݁߹ςετ Ϗϧυ

    σϓϩΠ४උ σϓϩΠ "NB[PO&$4 "QQMJDBUJPO-PBE#BMBODFS 3%4"VSPSB όοΫΤϯυ %FWFMPQNFOU 1SPEVDUJPO ։ൃ؀ڥ͸NBJOʹQVTIͱಉ࣌ʹσϓϩΠ·Ͱߦ͏ ຊ൪؀ڥ͸खಈͰσϓϩΠͷΈߦ͏ σϓϩΠ ୯ମςετ ݁߹ςετ Ϗϧυ σϓϩΠ४උ
  2. $*Ͱ΍Δϑϩʔجຊͦͷ "NB[PO&$4 "QQMJDBUJPO-PBE#BMBODFS σϓϩΠͰߦ͏͜ͱ όοΫΤϯυ ։ൃऀͷϩʔΧϧ ୯ମςετ ݁߹ςετ Ϗϧυ σϓϩΠ४උ

    σϓϩΠ "NB[PO&MBTUJD$POUBJOFS3FHJTUPSZ &$44FSWJDF5BTLVQEBUF &$45BTL%F fi OJUJPOVQEBUF NJHSBUJPO &$4ͷઃఆΛมߋ͢ΔͷͰ "84$%,΍5FSSBGPSNͰ ߦ͏͜ͱ͕ଟ͍Ͱ͢
  3. "NB[PO&$4 "QQMJDBUJPO-PBE#BMBODFS 3%4"VSPSB 4ZTUFN.BOBHFS4FDSFU.BOBHFS όοΫΤϯυ ։ൃऀͷϩʔΧϧ "NB[PO&$4 "QQMJDBUJPO-PBE#BMBODFS 3%4"VSPSB όοΫΤϯυ

    %FWFMPQNFOU 1SPEVDUJPO EFWUT QSPEUT σϓϩΠ४උػີ৘ใΛ؀ڥ෼༻ҙ ։ൃ༻ػີ৘ใ ຊ൪༻ػີ৘ใ
  4. "NB[PO&$4 "QQMJDBUJPO-PBE#BMBODFS 3%4"VSPSB ΞϓϦέʔγϣϯଆ͸؀ڥม਺ͰಡΈࠐΉΑ͏ʹ͓ͯ͘͠ όοΫΤϯυ ։ൃऀͷϩʔΧϧ "NB[PO&$4 "QQMJDBUJPO-PBE#BMBODFS 3%4"VSPSB όοΫΤϯυ

    %FWFMPQNFOU 1SPEVDUJPO EFWUT QSPEUT σϓϩΠ४උΞϓϦ಺ͷඞཁͳ৘ใ͸؀ڥม਺Ͱ ։ൃ༻ػີ৘ใ ຊ൪༻ػີ৘ใ
  5. σϓϩΠ "NB[PO&$4 "QQMJDBUJPO-PBE#BMBODFS DELEFQMPZίϚϯυ όοΫΤϯυ ։ൃऀͷϩʔΧϧ ୯ମςετ ݁߹ςετ Ϗϧυ σϓϩΠ४උ

    σϓϩΠ "NB[PO&MBTUJD$POUBJOFS3FHJTUPSZ &$44FSWJDF5BTLVQEBUF &$45BTL%F fi OJUJPOVQEBUF NJHSBUJPO DELEFQMPZ<ελοΫ໊>
  6. Ծ૝Խͱ͸ Ұ୆ͷ෺ཧ04্Ͱෳ਺ͷ04Λಈ͔͢ख๏ɻ ෺ཧϚγϯ 04 (VFTU04 (VFTU04 (VFTU04 "QQ "QQ "QQ

    ෺ཧతʹ͸Ұ୆ͷ෺ཧϚγϯ͕ͩɺ ͦͷ্Ͱ͸ࡾͭͷ04͕ىಈ͍ͯ͠Δ
  7. αʔόԾ૝ԽͱίϯςφԾ૝Խ Ͳͬͪ΋Ұ୆ͷ෺ཧαʔόͷ্Ͱࡾ୆ͷԾ૝αʔό͕ಈ͍͍ͯΔ ෺ཧϚγϯ 04 (VFTU04 (VFTU04 (VFTU04 #JO-JCT #JO-JCT #JO-JCT

    )ZQFSWJTFS ෺ཧϚγϯ 04 #JO-JCT #JO-JCT #JO-JCT %PDLFS&OHJOF "QQ "QQ "QQ "QQ "QQ "QQ ,FSOFM ,FSOFM ,FSOFM ,FSOFM ,FSOFM
  8. ߟ͑ํͷҧ͍ Ϧιʔεͦͷ΋ͷΛԾ૝Խ͢ΔϋΠύʔόΠβʔܕͱɺΞϓϦέʔγϣϯͷശΛ༻ҙ͢ΔΠϝʔδͷίϯςφܕ ϋΠύʔόΠβʔܕ ίϯςφܕ ෺ཧϚγϯ 04 (VFTU04 (VFTU04 (VFTU04 #JO-JCT

    #JO-JCT #JO-JCT )ZQFSWJTFS ෺ཧϚγϯ 04 #JO-JCT #JO-JCT %PDLFS&OHJOF "QQ "QQ "QQ "QQ "QQ ,FSOFM ,FSOFM ,FSOFM ,FSOFM ,FSOFM #JO-JCT "QQ
  9. "NB[PO&$ &$͸ϋΠύʔόΠβʔܕ ϋΠύʔόΠβʔܕ ίϯςφܕ ෺ཧϚγϯ 04 (VFTU04 (VFTU04 (VFTU04 #JO-JCT

    #JO-JCT #JO-JCT )ZQFSWJTFS ෺ཧϚγϯ 04 #JO-JCT #JO-JCT %PDLFS&OHJOF "QQ "QQ "QQ "QQ "QQ ,FSOFM ,FSOFM ,FSOFM ,FSOFM ,FSOFM
  10. "NB[PO&$4 &$4͸ίϯςφܕ ϋΠύʔόΠβʔܕ ίϯςφܕ ෺ཧϚγϯ 04 (VFTU04 (VFTU04 (VFTU04 #JO-JCT

    #JO-JCT #JO-JCT )ZQFSWJTFS ෺ཧϚγϯ 04 #JO-JCT #JO-JCT %PDLFS&OHJOF "QQ "QQ "QQ "QQ "QQ ,FSOFM ,FSOFM ,FSOFM ,FSOFM ,FSOFM
  11. ίϯςφͷҠ২ੑʹ͍ͭͯ ίϯςφ͸Ծ૝Խͷ୯Ґ͕খ͘͞ɺΠϝʔδԽͯ͠ผͷ04΁ͷҠߦ΍ෳ੡ָ͕ ෺ཧϚγϯ 04 #JO-JCT #JO-JCT #JO-JCT %PDLFS&OHJOF "QQ "QQ

    "QQ ෺ཧϚγϯ 04 %PDLFS&OHJOF "QQ"ίϯςφ #JO-JCT "QQ "QQ"ίϯςφ "QQ"Πϝʔδ "QQ#Πϝʔδ "QQ$Πϝʔδ ίϯςφϦϙδτϦ
  12. ίϯςφͷҠ২ੑʹ͍ͭͯ ΠϝʔδΛ؅ཧ͢Δ࢓૊ΈΛίϯςφϦϙδτϦͱ͍͏ ෺ཧϚγϯ 04 #JO-JCT #JO-JCT #JO-JCT %PDLFS&OHJOF "QQ "QQ

    "QQ ෺ཧϚγϯ 04 %PDLFS&OHJOF "QQ"ίϯςφ "QQ"Πϝʔδ #JO-JCT "QQ "QQ"ίϯςφ "QQ#Πϝʔδ "QQ$Πϝʔδ ίϯςφϦϙδτϦ
  13. ίϯςφͷҠ২ੑʹ͍ͭͯ ίϯςφΠϝʔδͷ΍ΓͱΓΛQVTIQVMMͱ͍͏ ෺ཧϚγϯ 04 #JO-JCT #JO-JCT #JO-JCT %PDLFS&OHJOF "QQ "QQ

    "QQ ෺ཧϚγϯ 04 %PDLFS&OHJOF "QQ"ίϯςφ #JO-JCT "QQ "QQ"ίϯςφ "QQ"Πϝʔδ "QQ#Πϝʔδ "QQ$Πϝʔδ ίϯςφϦϙδτϦ EPDLFSQVMM EPDLFSQVTI
  14. &$4͸ίϯςφ࣮ߦ؀ڥɿ1BSU &$4Λ࢖ͬͯίϯςφΛىಈ͢Δʹ͸5BTL%F fi OJUJPOΛॻ͘ඞཁ͕͋Δɻ %PDLFS fi MFͱ͸·ͨҧ͏ఆٛΛ৭ʑ͢Δඞཁ͕͋Δ Amazon Elastic Container

    Registory Amazon Elastic Container Service ECS Compute Option AWS Fargate AWS LocalZones AWS WaveLength AWS Outposts 5BTL%F fi OJUJPO 5BTL%F fi OJUJPO 5BTL%F fi OJUJPO
  15. &$4͸ίϯςφ࣮ߦ؀ڥɿ1BSU &$4Λ࢖ͬͯίϯςφΛىಈ͢Δʹ͸5BTL%F fi OJUJPOΛॻ͘ඞཁ͕͋Δɻ %PDLFS fi MFͱ͸·ͨҧ͏ఆٛΛ৭ʑ͢Δඞཁ͕͋Δ Amazon Elastic Container

    Registory Amazon Elastic Container Service ECS Compute Option AWS Fargate AWS LocalZones AWS WaveLength AWS Outposts 5BTL%F fi OJUJPO 5BTL%F fi OJUJPO 5BTL%F fi OJUJPO
  16. 5BTL%F fi OJUJPOʹॻ͘͜ͱ "NB[PO&$4 "QQMJDBUJPO-PBE#BMBODFS "84ͷઃఆͷఆٛΛ৭ʑهड़͢Δඞཁ͕͋Δɻ όοΫΤϯυ "NB[PO&MBTUJD$POUBJOFS3FHJTUPSZ w ىಈλΠϓ

    w λεΫఆ໊ٛ w λεΫϩʔϧʢίϯςφΛ࣮ߦ͢Δ*".ϩʔϧ w ωοτϫʔΫϞʔυʢ71$ͱ͔બͿʣ w 04ϑΝϛϦʔʢ8JOEPXT-JOVYʣ w λεΫͷαΠζʢίϯςφͷϦιʔε$16ͱ͔ϝϞϦͱ͔ʣ w ίϯςφ໊ w ίϯςφͷΠϝʔδ໊ w ϙʔτϚοϐϯά w ͦͷଞίϯςφͷઃఆ ଞʹ΋͍Ζ͍Ζ
  17. ·ͱΊ Ծ૝Խʹ͍ͭͯ  ෺ཧతͳίϯϐϡʔλϦιʔεͷ্ʹԾ૝తʹෳ਺ͷϚγϯΛ࡞੒͢Δػೳ  ϋΠύʔόΠβʔܕ͸෺ཧϦιʔεΛ෼͚ΔʢΧʔωϧ͝ͱ෼ׂʣ  ίϯςφܕ͸ΞϓϦέʔγϣϯͷശΛͭ͘ΔʢΧʔωϧ͸ڞ༗ʣ  ίϯςφܕ͸Πϝʔδͱ͍͏୯ҐͰ࣋ͪӡͼͰ͖Δ

     ίϯςφΠϝʔδΛ؅ཧ͢Δ࢓૊ΈΛϦϙδτϦͱ͍͏ &$4  5BTL%F fi OJUJPOͰ"84ͷઃఆΛ͍Ζ͍Ζ͢Δ  ىಈλΠϓ͸'BSHBUF&$ͦͷଞ͍͔ͭ͋͘Δ  ࣮ߦλΠϓ͸&$44FSWJDFܕͱ&$45BTLܕ͕͋Δɻ