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

ElasticBeanstalk で新規事業を爆速ローンチする / Launch new b...

ElasticBeanstalk で新規事業を爆速ローンチする / Launch new business with ElasticBeanstalk

Ryo Shibayama

December 09, 2016
Tweet

More Decks by Ryo Shibayama

Other Decks in Technology

Transcript

  1. @serima • Ψϥέʔ࣌୅ʹ GPS ܥͷϞόΠϧίϯςϯπͰىۀ • ͦͷޙɺWeb ܥاۀͰΞϓϦέʔγϣϯΤϯδχΞͱ͠ ͯԿ͔ࣾ౉Γา͘ •

    Ґஔ৘ใܥΞϓϦɾϝʔϧϚΨδϯɾιʔγϟϧήʔ Ϝɾϗςϧ༧໿ΞϓϦ • ࡢ೥ɺβούϥεʹೖࣾ͠ɺ৽نࣄۀ΍طଘΞʔΩςΫ τݟ௚͠ͳͲ
  2. ͔͍ͭ·ΜͰݴ͏ͱ • Α͋͘Δ ELB + EC2 (+ RDS) ͷߏ੒Λૉૣ͘ɺ؆ ୯ʹ࡞ΕΔʢίϯιʔϧ͚ͩͰ͍͚ΔΑʣ

    • EC2 ͸ AutoScaling Group ͕σϑΥϧτͰઃఆ͞ Ε͍ͯΔͷͰɺΦʔτεέʔϦϯά΋ OK • ఏڙ͞Ε͍ͯΔ eb ίϚϯυͰ cli ্͔Β҆৺ɾ҆ શʹσϓϩΠ͕Մೳ
  3. αϙʔτ͞Ε͍ͯΔϓϥοτϑΥʔϜ • Apache Tomcat for Java • Apache HTTP Server

    for PHP • Apache HTTP Server for Python • Nginx or Apache HTTP Server for Node.js • Passenger or Puma for Ruby • Microsoft IIS 7.5, 8.0, and 8.5 for .NET • Java SE • Docker • Go
  4. ؀ڥߏஙͷํ਑ • RDS ͸ eb ؀ڥ಺ʹ࡞Βͳ͍౳ɺ؀ڥࣗମ͸εςʔτϨεΛ໨ࢦ͢ • Docker ͸࢖ΘͣɺϓϨϏϧτ͞ΕͨϓϥοτϑΥʔϜΛར༻ •

    ࠓͩͱɺPHP 7.0 on Amazon Linux • ΧελϚΠζ͸ίϯϑΟΪϡϨʔγϣϯϑΝΠϧʹدͤΔ • ؀ڥ͸ɺAPI / Web / ؅ཧը໘ͱͰ෼͚Δ • ϩάपΓ͸ td-agent Λ࢖ͬͯ s3 ΁
  5. ͪΐͬͱࠔͬͨ͜ͱ - Part 1 • ͱ͋Δ֎෦αʔϏεͷ API Λୟ͘ඞཁ͕͋ͬͨ ͕ɺIP Λݻఆ͍ͯͩ͘͠͞ͱͷґཔ

    • default VPC ʹ eb ؀ڥΛ࡞ͬͯ͠·͍ͬͯͨͷ ͰɺNAT Gateway ͷద༻͕ޙ͔ΒͰ͖ͳ͔ͬͨ • Ͳ͏͔ͨ͠ʁ؀ڥ࡞Γ௚͠
  6. ͪΐͬͱࠔͬͨ͜ͱ - Part 2 • ࣗಈੜ੒͞ΕΔηΩϡϦςΟάϧʔϓɺAuto Scaling άϧʔϓɺͲΕ͕ԿΛࢦ͍ͯ͠Δ͔೺Ѳ ͮ͠Β͍໰୊ •

    Կ΋ҙࣝ͠ͳ͍ͳΒಛʹ໰୊ʹͳΒͳ͍ͷ͔΋͠ Εͳ͍͕ɺͪΐͬͱͨ͠ΧελϚΠζ࣌ʹࠔͬͨ • ஞҰશ෦ݟͯɺϦωʔϜͨ͠