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

AWS費用と戦う

Ryo Manzoku
November 10, 2017

 AWS費用と戦う

2017-11-10 Geeks Who Drink in Tokyo -AWS & 神楽坂 Edition- @nulab

Ryo Manzoku

November 10, 2017
Tweet

More Decks by Ryo Manzoku

Other Decks in Technology

Transcript

  1. "84අ༻ͱઓ͏
    Studyplus inc.
    @rmanzoku
    2017-11-10
    Geeks Who Drink in Tokyo
    -AWS & ਆָࡔ Edition-

    View full-size slide

  2. © 2017 Studyplus, Inc. All Rights Reserved.
    wελσΟϓϥεגࣜձࣾ
    wຬ଍྄3ZP.BO[PLV
    wΠϯϑϥ·ΘΓΤϯδχΞ
    w೥݄δϣΠϯ
    w1Z$PO+1ελοϑ
    wझຯ͸ϥʔϝϯͱҿञͱϘϧμϦϯά
    w*46$0/͸༧બഊୀ͠·ͨ͠
    wIUUQTHJUIVCDPNSNBO[PLV

    ࣗݾ঺հ

    View full-size slide

  3. 0VSNJTTJPO
    ֶͿتͼΛ͢΂ͯͷਓ΁

    View full-size slide


  4. ษڧͷه࿥Λ͚ͭͯάϥϑͱͯ͠ՄࢹԽͨ͠Γɺ
    αʔϏε಺Ͱษڧ஥ؒΛ࡞ͬͯ
    ͓ޓ͍ʹྭ·͠߹ͬͨΓ͢Δ͜ͱͰɺ
    ࠳ં͕ͪ͠ͳษڧΛश׳Խ͢Δ͜ͱ͕Ͱ͖·͢ɻ
    ࡏ੶ੜెͷֶशਐͪΐ͘ͱঢ়گΛఆྔσʔλͰ
    ೺Ѳ෼ੳ͢Δ͜ͱ͕ՄೳʹͳΓɺ
    ࠓ·ͰҎ্ʹतۀ΍໘ஊͷޮՌΛ޲্ͤ͞Δ͜ͱ͕ՄೳͰ͢ɻ

    View full-size slide

  5. © 2017 Studyplus, Inc. All Rights Reserved.

    View full-size slide

  6. "84ͷඅ༻Λ൒ֹʹͨ͠࿩

    View full-size slide

  7. © 2017 Studyplus, Inc. All Rights Reserved.
    wΠϯϑϥඅ༻ͱ͸
    w໨ඪΛઃఆ͢Δ
    wΠϯϑϥඅ༻Λ೺Ѳ͢Δ
    w࣮ྫ

    ࠓ೔࿩͢͜ͱ

    View full-size slide

  8. © 2017 Studyplus, Inc. All Rights Reserved.
    wΠϯϑϥඅ༻࡟ݮ͸ΠϯϑϥΤϯδχΞ͚ͩͰ͸ղܾͰ͖ͳ͍
    w։ൃऀɺاըͷਓͱҰॹʹͳͬͯਐΊΔ
    w໨ඪΛڞ༗͢Δ
    wඅ༻Λ࡟ΔͨΊͷূڌूΊΛ͢Δ
    wϞνϕʔγϣϯʹ΋ͳΔ
    wΠϯϑϥࢹ఺͔Βݟ͑Δվળ఺Λੵۃతʹൃ৴͍ͯ͘͠

    ఻͍͑ͨ͜ͱ

    View full-size slide

  9. ͳͥΠϯϑϥඅ༻Λ࡟Δඞཁ͕͋Δͷ͔

    View full-size slide

  10. © 2017 Studyplus, Inc. All Rights Reserved.

    View full-size slide

  11. © 2017 Studyplus, Inc. All Rights Reserved.

    Πϯϑϥඅ༻͸ίί
    རӹ͕૿͑Δ

    View full-size slide

  12. © 2017 Studyplus, Inc. All Rights Reserved.
    wച্ݪՁʹ౰ͨΔ
    wΫϥ΢υ͸ैྔ՝ۚͳͷͰΦϯϓϨͱҧͬͯ୹ظͰ࡟ݮՄೳ
    w࡟ݮ͚ͨͩ͠ച্རӹ͕૿͑Δ
    wϏδωεͷ੒௕ʹ࢖͑Δ͓͕ۚ૿͑Δ
    w͓څྉʹ·Θ͓ۚ͢΋૿͑Δϋζ
    wརӹΛ૿΍͠Ϗδωεͷ੒௕Λࢧ͑Δͱ͍͏ؾ࣋ͪͰऔΓ૊Ή
    wίετͳͷͰ௿͍΄͏͕ΈΜͳخ͍͠

    Πϯϑϥඅ༻

    View full-size slide

  13. ఆྔతͳ໨ඪΛܾΊΔ

    View full-size slide

  14. © 2017 Studyplus, Inc. All Rights Reserved.
    ରച্ൺ

    View full-size slide

  15. © 2017 Studyplus, Inc. All Rights Reserved.
    wରച্ൺͰߟ͑Δͷ͕Ұൠత
    wച্ͷ͏ͪY͕Πϯϑϥඅ༻
    w೥౓ͷΠϯϑϥඅ༻͕ରച্ൺ͕999
    w೥݄ͷΠϯϑϥඅ༻Λ݄ؒച্༧ࢉͷͱઃఆ
    w9ʹ͢ΔΘ͚Ͱ͸ͳ͘ɺച্༧ࢉ͔Βٯࢉֹͨۚ͠Λ໨ࢦ͢
    w։ൃ΍اըͷਓͱڞ௨ೝࣝΛ΋ͭ
    w೥͔͚ͯຖ݄গ͚͍ͣͭۙͮͯ͘͠
    w໨ඪୡ੒ͷͨΊͷϩʔυϚοϓΛ࡞੒͢Δ

    4UVEZQMVTͷ໨ඪઃఆ

    View full-size slide

  16. © 2017 Studyplus, Inc. All Rights Reserved.

    View full-size slide

  17. © 2017 Studyplus, Inc. All Rights Reserved.
    wΠϯϑϥΤϯδχΞͷ৬຿ൣғ͸޿͘ͳΓ͕ͪͳͷͰ͜͏͍͏͜
    ͱΛ΍Γ·͢ͱ͍͏ҙࢥදࣔ
    wΠϯϑϥͬͯͳʹ΍Δͷʁ
    wʮ͍ͭ·Ͱʹ9ԁΛ໨ࢦ͍ͯ͠ΔͷͰɺࠓ݄:Λ࣮ࢪ͠·͢ʯ
    wਐḿΛ؅ཧ͢ΔΘ͚Ͱͳ͘ɺ໨ඪڞ༗Λ໨తͱ͍ͯ͠Δ
    wઌճΓͯ͠࢓ࠐΈΛߦ͏
    wʮ࠶དྷ݄͘Β͍ʹ9ΛೖΕ͍ͨͷͰ४උΛ͓ئ͍͠·͢ʯ

    ϩʔυϚοϓ

    View full-size slide

  18. "84අ༻Λܭଌ͢Δ࢓૊Έͮ͘Γ

    View full-size slide

  19. ਪଌ͢ΔͳɺܭଌͤΑ
    %POUHVFTT NFBTVSF

    View full-size slide

  20. © 2017 Studyplus, Inc. All Rights Reserved.
    $MPVE8BUDI#JMMJOH
    ௨஌#PU

    View full-size slide

  21. © 2017 Studyplus, Inc. All Rights Reserved.
    wຖ೔ɺ$MPVE8BUDIͷ#JMMJOH৘ใΛऔ͖ͬͯͯ௨஌͢Δ
    wDSPOͰ"84$-*Λୟ͍ͯ੔ܗ͢Δ͚ͩ
    wIUUQTHJUIVCDPNSNBO[PLVTDSJQUTCMPCNBTUFSDSPO
    CJMMJOHTI
    wͳΜͱͳ͘ͷֹ݄༧૝͕Ͱ͖Δɺҟৗͳ਺஋ʹͳ͍ͬͯΕ͹͢
    ͙ʹؾͮ͘͜ͱ͕Ͱ͖Δ

    "84ྉۚ௨஌#PU

    View full-size slide

  22. © 2017 Studyplus, Inc. All Rights Reserved.

    View full-size slide

  23. © 2017 Studyplus, Inc. All Rights Reserved.
    $PTU&YQMPSFS

    View full-size slide

  24. © 2017 Studyplus, Inc. All Rights Reserved.
    w"84#JMMJOHEBTICPBSE
    wσϑΥϧτͷ΋ͷ͚ͩͰͳࣗ͘࡞Մೳ
    wϙνϙνͯ͠Δ͚ͩͰ࡞੒Ͱ͖Δ
    wఆظϨϙʔτ͕͠қ͍
    w։ൃऀʹઆ໌͠΍͍͢
    wάϥϑΛݟΔͱ߲໨9্͕͕ͬͯ·͕͢ͲΜͳॲཧͯ͠·͢ʁ
    wվળ͕౰ͨͬͨͱ͖ʹ࣮ײΛಘ΍͍͢

    $PTU&YQMPSFS

    View full-size slide

  25. © 2017 Studyplus, Inc. All Rights Reserved.

    View full-size slide

  26. © 2017 Studyplus, Inc. All Rights Reserved.

    ίετΧοτ࣮ײ͢Δ΍ͭ

    View full-size slide

  27. © 2017 Studyplus, Inc. All Rights Reserved.

    $MPVE'SPOUར༻

    View full-size slide

  28. © 2017 Studyplus, Inc. All Rights Reserved.
    5SVTUFE"EWJTPS

    View full-size slide

  29. © 2017 Studyplus, Inc. All Rights Reserved.
    wαϙʔτϓϥϯΛܖ໿͢Δͱ࢖͑Δ
    w$16ͷར༻཰ͳͲ͔Βɺద੾Ͱͳ͍ΠϯελϯελΠϓͷϦιʔ
    εΛදࣔͯ͘͠ΕΔ
    wΠϯελϯεΛׂΓ౰ͯΒΕͯͳ͍&-#΍&*1ͳͲ΋Θ͔Δ
    wແବͳϦιʔεΛՄࢹԽͰ͖Δ
    wίετҎ֎ʹ΋ύϑΥʔϚϯε΍ηΩϡϦςΟͷ؍఺͔Βڭ͑
    ͯ
    w"84΋ෆ౰ʹߴֹ͍ۚͰ࢖ͬͯ΄͍͠Θ͚Ͱ͸ͳ͍

    5SVTUFE"EWJTPS

    View full-size slide

  30. © 2017 Studyplus, Inc. All Rights Reserved.

    View full-size slide

  31. © 2017 Studyplus, Inc. All Rights Reserved.
    %FUBJMFECJMMJOHSFQPSU
    XJUISFTPVSDFTBOEUBHT

    View full-size slide

  32. © 2017 Studyplus, Inc. All Rights Reserved.
    wྉۚௐࠪͷ࠷ऴखஈ
    wৄࡉͳ#JMMJOH3FQPSUTΛ4ʹอଘͰ͖Δ
    wʮ%FUBJMFECJMMJOHSFQPSUXJUISFTPVSDFTBOEUBHTʯͰϦι
    ʔε͝ͱͷྉ͕ۚݟΕΔ
    wHSFQͱRίϚϯυͰ42-Λ࢖ͬͯूܭ͢Δ
    w΄Μͱ͸"UIFOBʹ͍ͨ͠
    wεϓϨουγʔτͰڞ༗

    %FUBJMFECJMMJOHSFQPSU

    View full-size slide

  33. © 2017 Studyplus, Inc. All Rights Reserved.

    Πϯλʔωοτ΁ͷσʔλ௨৴ྔ

    View full-size slide

  34. ग़͖ͯͨ໰୊ͷྫ

    View full-size slide

  35. © 2017 Studyplus, Inc. All Rights Reserved.
    &$$MBTTJD

    View full-size slide

  36. © 2017 Studyplus, Inc. All Rights Reserved.
    w71$ʹೖ͍ͬͯͳ͍Πϯελϯε
    wd೥ʹ࡞ͬͨ"84ΞΧ΢ϯτͷσϑΥϧτ
    wԾ૝Խํ͕ࣜQW͔͠࢖͑ͳ͍
    w࠷ۙͷ$16࠷దΠϯελϯε͸IWNͷΈରԠD U
    w։ൃ؀ڥͱͯ͠Քಇ͢ΔNTNBMM
    wύοͱݟɺҰ൪͍҆Πϯελϯεʹݟ͑Δ
    wηΩϡϦςΟάϧʔϓͷண୤Ͱ࠶ىಈ͢ΔΠϯελϯε
    w71$QFFSJOHͱ͔࢖͑ͳ͍

    &$$MBTTJDͷͭΒ͞

    View full-size slide

  37. © 2017 Studyplus, Inc. All Rights Reserved.

    IUUQBXTUZQFQBEDPNBXT@KBQBOBNB[POFDVQEBUF
    WJSUVBMQSJWBUFDMPVETGPSFWFSZPOFIUNM

    View full-size slide

  38. © 2017 Studyplus, Inc. All Rights Reserved.

    IUUQTBXTBNB[PODPNKQCMPHTOFXT
    OPXBWBJMBCMFDPNQVUFJOUFOTJWFDJOTUBODFTGPSBNB[POFD

    View full-size slide

  39. © 2017 Studyplus, Inc. All Rights Reserved.

    $MBTTJDʢQWํࣜʣͰ࢖͑ΔΠϯελϯε

    View full-size slide

  40. © 2017 Studyplus, Inc. All Rights Reserved.

    $MBTTJDʢQWํࣜʣͰ࢖͑ΔΠϯελϯε

    View full-size slide

  41. © 2017 Studyplus, Inc. All Rights Reserved.

    $MBTTJDʢQWํࣜʣͰ࢖͑ΔΠϯελϯε

    View full-size slide

  42. © 2017 Studyplus, Inc. All Rights Reserved.

    $MBTTJDʢQWํࣜʣͰ࢖͑ΔΠϯελϯε

    View full-size slide

  43. © 2017 Studyplus, Inc. All Rights Reserved.

    $MBTTJDʢQWํࣜʣͰ࢖͑ΔΠϯελϯε

    View full-size slide

  44. © 2017 Studyplus, Inc. All Rights Reserved.

    $MBTTJDʢQWํࣜʣͰ࢖͑ΔΠϯελϯε

    View full-size slide

  45. © 2017 Studyplus, Inc. All Rights Reserved.

    $MBTTJDʢQWํࣜʣͰ࢖͑ΔΠϯελϯε

    View full-size slide

  46. © 2017 Studyplus, Inc. All Rights Reserved.
    NϑΝϛϦʔ

    View full-size slide

  47. © 2017 Studyplus, Inc. All Rights Reserved.

    ࣌ؒ=
    = ݄

    View full-size slide

  48. © 2017 Studyplus, Inc. All Rights Reserved.

    ࣌ؒ=
    = ݄

    View full-size slide

  49. © 2017 Studyplus, Inc. All Rights Reserved.

    IUUQTBXTBNB[PODPNKQCMPHTOFXTFDQSJDFSFEVDUJPODNBOEUJOTUBODFT

    View full-size slide

  50. © 2017 Studyplus, Inc. All Rights Reserved.
    71$Ҡߦ͢Ε͹࣮֬ʹ
    ҆͘ͳΔ

    View full-size slide

  51. © 2017 Studyplus, Inc. All Rights Reserved.
    71$Ҡߦ

    View full-size slide

  52. © 2017 Studyplus, Inc. All Rights Reserved.
    w͕࣌ؒͳ͍ͷͰৄࡉׂѪ
    w%#͕$MBTTJDʹ͍ΔͷͰɺܭըϝϯςφϯε
    wਂ໷ʹ࣌ؒ΄ͲϝϯςΛೖΕ࣮ͯࢪɻ
    wࣄલ४උʹϲ݄ఔ౓
    wຊ൪Πϯελϯε΋DDϑΝϛϦʔʹมߋ
    w·ΘΓΛר͖ࠐΜͰ஍ಓʹ΍͍͔ͬͯ͋͘͠Γ·ͤΜ

    71$Ҡߦ

    View full-size slide

  53. © 2017 Studyplus, Inc. All Rights Reserved.
    wຊ൪ϐʔΫ࣌ؒͷΦʔτεέʔϧ୆਺͕୆͔Β୆ʹݮগ
    wຊ൪࣌ؒ͋ͨΓͷ୯Ձ͕࡟ݮʢੑೳ͸޲্ʣ
    w։ൃ؀ڥͷίετ࡟ݮ
    wNΠϯελϯεͷ๾໓
    w71$Ҡߦʹ߹ΘͤͯϦιʔε഑ஔΛ࠷దԽͨ͠ͷͰ&$ͷίε
    τશମͰ͸͘Β͍ݮͬͨ
    wͻͬͦΓͱύϑΥʔϚϯε͕͔Βʹվળ
    w͓ۚΑΓଈޮੑͷ͋Δ

    ޮՌ

    View full-size slide

  54. © 2017 Studyplus, Inc. All Rights Reserved.

    &$ར༻ྉۚ

    View full-size slide

  55. © 2017 Studyplus, Inc. All Rights Reserved.
    "NB[PO$MPVE4FBSDI

    View full-size slide

  56. © 2017 Studyplus, Inc. All Rights Reserved.
    wλΠϜϥΠϯݕࡧͱ͍͏Ϣʔβ౤ߘΛݕࡧͰ͖Δػೳʹར༻
    w͋Δ೔ಥવഒʹͳΔར༻ྉۚ
    wͳ͔ͥഒͷσʔλྔʹεέʔϧ͍ͯͨ͠
    w౤ߘ͋ͨΓճ࣮ߦ͞ΕΔ#BUDI6QMPBE
    w෼ؒʹճఔ౓͔͠ൃߦ͞Εͳ͍ݕࡧϦΫΤετ
    wαʔϏε։࢝Ҏདྷɺ͢΂ͯͷ౤ߘ͕શจݕࡧՄೳ

    $MPVE4FBSDIར༻ঢ়گ

    View full-size slide

  57. © 2017 Studyplus, Inc. All Rights Reserved.

    $MPVE4FBSDIར༻ྉۚ
    ಥવഒʹͳΔ
    ར༻ྉۚ
    ྉۚͷΛ઎ΊΔ
    #BUDI6QMPBE 0UIFSTʹ·ͱΊΒΕ͍ͯΔͱ
    ࢥΘΕΔϢʔβϦΫΤετ

    View full-size slide

  58. © 2017 Studyplus, Inc. All Rights Reserved.
    wʮ͜ͷػೳɺ͋·Γ࢖ΘΕͯͳ͍ͬΆ͍Ͱ͚͢ͲཁΓ·͢ʁʯ
    w͍͖ͳΓఫୀ͸ෆՄೳ
    w࢓༷Λௐ੔ͯ͠࡞੒͠௚ͯ͠΋Βͬͨ
    wαʔϏε։࢝Ҏདྷ௚ۙϲ݄෼Ͱ࡞੒
    w#BUDI6QMPBEΛ෼ؒʹճʹมߋ

    ղܾࡦ

    View full-size slide

  59. © 2017 Studyplus, Inc. All Rights Reserved.

    $MPVE4FBSDIར༻ྉۚ
    #BUDI6QMPBE
    ରࡦ
    ࠶࡞੒

    View full-size slide

  60. © 2017 Studyplus, Inc. All Rights Reserved.

    $MPVE4FBSDIͷ#BUDI6QMPBEճ਺
    #BUDI6QMPBE
    ରࡦ

    View full-size slide

  61. © 2017 Studyplus, Inc. All Rights Reserved.
    ݁ہͲ͏ͳ͔ͬͨ

    View full-size slide

  62. © 2017 Studyplus, Inc. All Rights Reserved.

    "84೥ؒਪҠ

    View full-size slide

  63. © 2017 Studyplus, Inc. All Rights Reserved.
    wΠϯϑϥඅ༻͕ࣄۀͷதͰͲͷΑ͏ͳҐஔʹ͋Δͷ͔Λ೺Ѳ
    w·ΘΓͷڠྗΛಘΒΕΔΑ͏ʹ໨ඪΛڞ༗
    wܧଓతʹΠϯϑϥඅ༻Λ೺Ѳ͢Δ࢓૊Έͮ͘Γ
    wΠϯϑϥࢹ఺͔Β࢓༷ϨϕϧͰఏҊ
    wҰਓͰ͸ղܾͰ͖ͳ͍ͷͰ։ൃऀɺاըͷਓΛר͖ࠐΜͰקΊ
    ͍ͯ͘

    ·ͱΊ

    View full-size slide

  64. +0*/0635&".
    ৽͍͠ڭҭͷ࢓૊ΈΛڞʹੜΈग़͢

    ஥ؒʹͳΓ·ͤΜ͔ʁ

    View full-size slide