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

2019-02-23 今日からはじめるCI/CD…のためのAWSアーキテクチャ事始め/2019...

opelab
February 23, 2019

2019-02-23 今日からはじめるCI/CD…のためのAWSアーキテクチャ事始め/20190223-jawsdays-arch

JAWS Days 2019でのJAWS-UGアーキテクチャ専門支部枠「今日からはじめるCI/CD…のためのAWSアーキテクチャ事始め」の発表資料です。

https://jawsdays2019.jaws-ug.jp/session/2220/

(運用設計ラボ合同会社 波田野裕一)

opelab

February 23, 2019
Tweet

More Decks by opelab

Other Decks in Technology

Transcript

  1. Operation Lab ӡ༻ઃܭϥϘ ӡ༻ઃܭϥϘ߹ಉձࣾ ࠓ೔͔Β͸͡ΊΔ$*$% 1  Architecture 8BOUFE0VSPSJHJOBMMPHP JAWS-UG

    ARCH ΞʔΩςΫνϟઐ໳ࢧ෦ γχΞΞʔΩςΫτ೾ా໺༟Ұ ʜͷͨΊͷ"84ΞʔΩςΫνϟࣄ࢝Ί
  2. Operation Lab ӡ༻ઃܭϥϘ $PEF$PNNJUͷ֓ཁ 10 CodeCommit ιʔείʔυ • HJUIVC૬౰ͷαʔϏε •

    *".ϢʔβຖʹΞΫηε੍ޚͰ͖Δɻ • JTTVF؅ཧ͸ແ͍ɻ $*$%ܥαʔϏεͰҰ൪͓खܰ
  3. Operation Lab ӡ༻ઃܭϥϘ $PEF#VJMEͷ֓ཁ 12 CodeBuild ιʔείʔυ ςετϏϧυ ΞʔςΟϑΝΫτ ੒Ռ෺

    • ιʔείʔυʹಉࠝ͞ΕͨCVJMETQFDZNMʹैͬͯ ςετ΍ϏϧυΛ࣮ߦ͢Δɻ • Ϗϧυͨ͠੒Ռ෺ ΞʔςΟϑΝΫτ ͕ग़ྗ͞ΕΔɻ ׂͱԿͰ΋Ͱ͖Δɻ ൿ఻ͷλϨԽ΋
  4. Operation Lab ӡ༻ઃܭϥϘ $PEF#VJMEͱ࿈ܞͰ͖ΔαʔϏε 13 CodeBuild ςετϏϧυ ΞʔςΟϑΝΫτ ੒Ռ෺ ιʔείʔυ

    • $PEF$PNNJU • $PEF1JQFMJOF • (JU)VC • 4 • #JU#VDLFU • (JU)VC&OUFSQSJTF • /0@4063$& • $PEF1JQFMJOF • 4 • /0@4063$& • CVJMETQFDZNMʹهड़ͨ͠৔ॴ • ྫ &$3
  5. Operation Lab ӡ༻ઃܭϥϘ $PEF%FQMPZͷ֓ཁ 14 CodeDeploy σϓϩΠ • ιʔείʔυʹಉࠝ͞ΕͨBQQTQFDZNMʹैͬͯ σϓϩΠ͢Δɻ

    • EFQMPZΤʔδΣϯτͷೖ͍ͬͯΔ&$΍ΦϯϓϨʹσϓϩΠɻ • -BNCEBͱ&$4΁ͷσϓϩΠʹ΋ରԠɻ ΞʔςΟϑΝΫτ ੒Ռ෺ • Server • Lambda • ECS ͦΕͧΕΞϓϦέʔγϣϯλΠϓ͕ҟͳΔͷͰɺޙ͔ΒมߋͰ͖ͳ͍ɻ σϓϩΠର৅͕ண࣮ʹ૿͍͑ͯΔɻ ංେԽͱ΋
  6. Operation Lab ӡ༻ઃܭϥϘ $PEF%FQMPZͱ࿈ܞͰ͖ΔαʔϏε 15 CodeDeploy σϓϩΠ ΞʔςΟϑΝΫτ ੒Ռ෺ •

    Server • Lambda • ECS • 4 • 4FSWFS &$  • 4FSWFS ΦϯϓϨ  • -BNCEB • &$4
  7. Operation Lab ӡ༻ઃܭϥϘ • S3 • ECS (Blue/Green) • ElasticBeanstalk

    • CloudFormation • OpsWorks • ServiceCatalog • Alexa skiils kit $PEF1JQFMJOFͱ࿈ܞͰ͖ΔαʔϏε 17 CodePipeline • CodeCommit • S3 • ECR • GitHub ঝೝεςοϓ • CodeBuild • Jenkins • ֤छSaaS IUUQTEPDTBXTBNB[PODPNKB@KQDPEFQJQFMJOFMBUFTUVTFSHVJEFJOUFHSBUJPOTBDUJPOUZQFIUNMJOUFHSBUJPOTUFTU
  8. Operation Lab ӡ༻ઃܭϥϘ "84$*$%ؔ࿈αʔϏεͷਖ਼͍͠શମ૾ 20 CodePipeline CodeCommit ιʔείʔυ CodeBuild ςετϏϧυ

    CodeDeploy σϓϩΠ ࣗ෼ୡͷ$*$%ύΠϓϥΠϯʹπʔϧΛ૊ΈࠐΉ ໨త खஈ ࣗ෼ͨͪͷύΠϓϥΠϯ
  9. Operation Lab ӡ༻ઃܭϥϘ $*$%ͷσβΠϯϚοϓ 23 ιʔείʔυ ςετϏϧυ σϓϩΠ ࣗ෼ͨͪͷύΠϓϥΠϯͷߦઌ͸Ϣʔβ σϓϩΠઌ

    ੒Ռ෺ ੒Ռ෺ ੒Ռ෺ ੒Ռ෺ ఏڙऀ Ϣʔβ • $PEF$PNNJU • 4 • &$3 • (JU)VC • #JU#VDLFU • (JU)VC&OUFSQSJTF • /0@4063$& • $PEF#VJME • +FOLJOT • ֤छ4BB4 • $PEF%FQMPZ • TDQͳͲ • $BQJTUSBOPͳͲ • &$ • ΦϯϓϨ • &$4 • 'BSHBUF • -BNCEB • &$4 #MVF(SFFO  • &MBTUJD#FBOTUBML • 0QT8PSLT • $MPVE'PSNBUJPO • 4FSWJDF$BUBMPH • "MFYBTLJJMTLJU
  10. Operation Lab ӡ༻ઃܭϥϘ $*$%ͷσβΠϯϚοϓ 26 ιʔείʔυ ςετϏϧυ σϓϩΠ ࣗ෼ͨͪͷύΠϓϥΠϯͷߦઌ͸Ϣʔβ σϓϩΠઌ

    ੒Ռ෺ ੒Ռ෺ ੒Ռ෺ ੒Ռ෺ ఏڙऀ Ϣʔβ ΞʔςΟϑΝΫτ ;JQ தؒ੒Ռ෺ • $PEF$PNNJU • 4 • &$3 • (JU)VC • #JU#VDLFU • (JU)VC&OUFSQSJTF • /0@4063$& • $PEF%FQMPZ • TDQͳͲ • $BQJTUSBOPͳͲ • &$ • ΦϯϓϨ • &$4 • 'BSHBUF • -BNCEB • &$4 #MVF(SFFO  • &MBTUJD#FBOTUBML • 0QT8PSLT • $MPVE'PSNBUJPO • 4FSWJDF$BUBMPH • "MFYBTLJJMTLJU • $PEF#VJME • +FOLJOT • ֤छ4BB4
  11. Operation Lab ӡ༻ઃܭϥϘ $PEF$PNNJU $PEF1JQFMJOF 4 27 ιʔείʔυ ςετϏϧυ σϓϩΠ

    σϓϩΠઌ ੒Ռ෺ ੒Ռ෺ ఏڙऀ Ϣʔβ CodePipeline ୯७ͳ্ॻ͖ͳͷͰɺҠಈ΍࡟আʹ͸௥ਵͰ͖ͳ͍ɻ • 4 • 4 • 4 Tutorial: Create a Pipeline That Uses Amazon S3 as a Deployment Provider IUUQTEPDTBXTBNB[PODPNKB@KQDPEFQJQFMJOFMBUFTUVTFSHVJEFUVUPSJBMTTEFQMPZIUNM தؒ੒Ռ෺ WebSite Hosting