Slide 1

Slide 1 text

ϠϓϦʹ͓͚Δ AWSίετ࠷దԽͷ औΓ૊Έ

Slide 2

Slide 2 text

Speaker ϓϩμΫτ։ൃຊ෦ ج൫෦ SREάϧʔϓ ࡾڮ ᇈଠ େखSIerͰΠϯϑϥΤϯδχΞ/Ϋϥ΢υΞʔΩςΫ τͱͯ͠ͷܦݧΛੵΈɺ2022೥4݄ΑΓϠϓϦͷ SREϝϯόʔͱͯ͠δϣΠϯɻݱࡏ͸SREϓϥΫς ΟεͷಋೖΛத৺ͱͨ͠ۀ຿ʹྭΜͰ͍ΔɻAWSͱ New Relicͱ່(ࠓ೥࢈·Εͨ)ͱϛχνϡΞμοΫε (·ͩࣂͬͯͳ͍)͕޷͖ɻҭٳ෮ؼϗϠϗϠ

Slide 3

Slide 3 text

01 02 03 04 05 AWSίετ࠷దԽͷऔΓ૊Έഎܠ ͲͷΑ͏ʹίετ࠷దԽʹऔΓ૊Μ͔ͩ ۩ମతͳίετ࠷దԽࢪࡦ ͦͷଞͷऔΓ૊Έ ·ͱΊͱࠓޙͷ՝୊

Slide 4

Slide 4 text

01 AWSίετ࠷దԽͷ औΓ૊Έഎܠ

Slide 5

Slide 5 text

͜Ε·Ͱ͸։ൃεϐʔυ΍αʔϏε඼࣭͕༏ઌͰੵۃతͳ౤ࢿ͕ߦΘΕ͖͕ͯͨɺԁ҆ͷ ӨڹʹΑΓίετ͕ॏཁࢹ͞ΕΔΑ͏ʹͳͬͨ ԁ҆ͷӨڹͰίετ͕ॏཁࢹ͞Ε࢝ΊΔ 01 AWSίετ࠷దԽͷऔΓ૊Έഎܠ ্ঢ܏޲ 2021೥1݄ 5݄ 9݄ 2022೥1݄ 5݄ 9݄ ച্ʹର͢ΔΠϯϑϥίετൺ཰

Slide 6

Slide 6 text

ΠϨΪϡϥʔͳίετ૿ʹ͸ରԠ͖ͯͨ͠ 01 AWSίετ࠷దԽͷऔΓ૊Έഎܠ • ίετͷେ͖͍AWSΞΧ΢ϯτͷίετਪҠΛि࣍Ͱ֬ೝ͠ରԠΛߦ͖ͬͯͨ • AWSͰ͸Cost Anomaly DetectionͰҟৗ஋ͷࣗಈݕग़΋Ͱ͖ΔΑ͏ʹ͍ͯ͠Δ 0 50 100 150 200 9/1 9/2 9/3 9/4 9/5 9/6 9/7 RDS ECS CloudWatch ໨ࢹͰͷίετ૿Ճ ܏޲ͷ֬ೝ Cost Anomaly DetectionͰͷࣗಈݕग़

Slide 7

Slide 7 text

ैདྷͷ΍Γํͷམͱ݀͠ 01 AWSίετ࠷దԽͷऔΓ૊Έഎܠ • ͦ΋ͦ΋ͷίετ͕࠷దͰ͋Δͱ͸ݶΒͳ͍ • ࠓճͷΑ͏ʹத௕ظεύϯͰΠϯϑϥίετͷൺ཰্͕ঢ͍ͯ͠Δ৔߹ʹؾ͚ͮͳ͍ 0 50 100 150 200 9/1 9/2 9/3 9/4 9/5 9/6 9/7 RDS ECS CloudWatch ࣮͸࠷ॳ͔Βա৒εϖοΫ ୹ظ܏޲͔͠ݟ͍ͯͳ͍

Slide 8

Slide 8 text

৽ͨʹ௚໘ͭͭ͋͠Δ՝୊ 01 AWSίετ࠷దԽͷऔΓ૊Έഎܠ ࣄۀ֦େʹ൐͍૿Ճ͢ΔAWSΞΧ΢ϯτʹ໨͕ಧ͔ͳ͘ͳΓͭͭ͋Δ prod stg dev prod stg dev prod stg dev αʔϏεA༻ͷΞΧ΢ϯτ αʔϏεB༻ͷΞΧ΢ϯτ αʔϏεBͷҕୗઌ༻ͷ ΞΧ΢ϯτ SREνʔϜ શһ͕೺Ѳ Ұ෦ϝϯ όʔͷΈ೺Ѳ ར༻ঢ়گෆ໌

Slide 9

Slide 9 text

01 AWSίετ࠷దԽͷऔΓ૊Έഎܠ ࠓճͷऔΓ૊ΈʹΑΓ ͜Ε·Ͱͷ՝୊Λղܾ͢Δͱͱ΋ʹɺ ୹ظؒͰ$10,000/݄ͷίετΛ ࡟ݮ͢Δ͜ͱʹ੒ޭͨ͠

Slide 10

Slide 10 text

02 ͲͷΑ͏ʹίετ࠷దԽʹ औΓ૊Μ͔ͩ

Slide 11

Slide 11 text

Cloud Financial Management(CFM)ϑϨʔϜϫʔΫʹ΋͋ΔΑ͏ʹܧଓతͳίετ࠷దԽ Λ࣮ݱ͢Δʹ͸ՄࢹԽ͕ඞཁͰ͋Δ ՄࢹԽ͔Β࢝ΊΔ 02 ͲͷΑ͏ʹίετ࠷దԽʹऔΓ૊Μ͔ͩ - ՄࢹԽ https://aws.amazon.com/jp/blogs/news/aws-cost-optimization-guidebook/ ίετΛ࠷దԽ͠Ϧιʔε ޮ཰ͱՁ஋Λ࠷େԽ͢Δ

Slide 12

Slide 12 text

• ΞΧ΢ϯτԣஅͰίετਪҠΛ֬ೝ͍ͨ͠ • த௕ظͰͷ܏޲Λ෼ੳͰ͖ΔΑ͏ʹ͍ͨ͠ • Cost ExplorerͷΑ͏ʹৄࡉͳྉۚ಺༁͕ݟ͑ΔΑ͏ʹ͍ͨ͠ ͱ͸ݴͬͯ΋… • ࡞ΓࠐΈ͸ಋೖ΍ϝϯςφϯε͕େมͳͷͰආ͚͍ͨ • खಈͰͷΦϖϨʔγϣϯ΋ۃྗආ͚͍ͨ • Cost ExplorerͰຖճؤுΔͷ͸ͭΒ͍ ࠷ߴͷμογϡϘʔυΛ࡞Γ͍ͨʂʂ 02 ͲͷΑ͏ʹίετ࠷దԽʹऔΓ૊Μ͔ͩ - ՄࢹԽ

Slide 13

Slide 13 text

AWS͔Βఏڙ͞Ε͍ͯΔίετ࠷దԽͷͨΊͷμογϡϘʔυ ςϯϓϨʔτ͕ఏڙ͞Ε͍ͯΔͨΊ਺෼Ͱߏங͕Մೳ Cloud Intelligence Dashboards(CID)ʂʂ 02 ͲͷΑ͏ʹίετ࠷దԽʹऔΓ૊Μ͔ͩ - ՄࢹԽ https://www.wellarchitectedlabs.com/cost/200_labs/200_cloud_intelligence/ ༷ʑͳαʔϏεͱ࿈ܞ ؍఺ͷҟͳΔμογϡ ϘʔυΛෳ਺ఏڙ

Slide 14

Slide 14 text

CIDͷಛ௃ 1 02 ͲͷΑ͏ʹίετ࠷దԽʹऔΓ૊Μ͔ͩ - ՄࢹԽ ͲͷΞΧ΢ϯτͷͲͷϦιʔε ͷίετ͕ߴ͍͔Ұ໨ྎવ த௕ظͰͷΞΧ΢ϯτશମͷ ίετਪҠ͕Θ͔Δ https://d1s0yx3p3y3rah.cloudfront.net/anonymous-embed?dashboard=cudos

Slide 15

Slide 15 text

CIDͷಛ௃ 2 02 ͲͷΑ͏ʹίετ࠷దԽʹऔΓ૊Μ͔ͩ - ՄࢹԽ S3 Storage Lens ͳͲͷίετ࠷దԽʹ໾ཱͭػೳ ͱͷ࿈ܞ ίετ࠷దԽͷͨΊͷਪ঑ࣄ ߲Λදࣔ https://d1s0yx3p3y3rah.cloudfront.net/anonymous-embed?dashboard=cudos

Slide 16

Slide 16 text

CIDͷಛ௃ 3 02 ͲͷΑ͏ʹίετ࠷దԽʹऔΓ૊Μ͔ͩ - ՄࢹԽ https://d1s0yx3p3y3rah.cloudfront.net/anonymous-embed?dashboard=cudos ࠓޙ༗ྉԽ͞ΕΔϦιʔεʹ΋ ૉૣ͘ରԠ

Slide 17

Slide 17 text

• ਝ଎ʹίετΛ࠷దԽ͢ΔΫΠοΫ΢Οϯ࠷దԽࢪࡦ͔Βݕ౼͢Δ • ఆ൪ͷࢪࡦ͚ͩͰͳ͘ɺ͔ͬ͠Γ෼ੳ্ͨ͠ͰࣗࣾͰͷΫΠοΫ΢ΟϯࢪࡦΛ໚ࡧ͢Δ ࠷దԽࢪࡦΛݕ౼͢Δ 02 ͲͷΑ͏ʹίετ࠷దԽʹऔΓ૊Μ͔ͩ - ࠷దԽ https://aws.amazon.com/jp/blogs/news/aws-cost-optimization-guidebook/ ఆ൪ͷΫΠοΫ΢Οϯ ࠷దԽࢪࡦ

Slide 18

Slide 18 text

1. ίετͷେ͖͍ϦιʔεΛϦετΞοϓ͠ɺݪҼ෼ੳΛߦ͏ 2. ࠷దԽ༨஍͕͋ΔϦιʔεʹର͠ࢪࡦΛݕ౼͢Δ 3. ࢪࡦͷ࣮ࢪޮՌͱ࣮ࢪ೉౓Λࢉग़͠༏ઌ౓Λ͚ͭΔ ೉қ౓ରޮՌͰࢪࡦʹ༏ઌ౓Λ͚ͭΔ 02 ͲͷΑ͏ʹίετ࠷దԽʹऔΓ૊Μ͔ͩ - ࠷దԽ https://aws.amazon.com/jp/blogs/news/aws-cost-optimization-framework/

Slide 19

Slide 19 text

02 ͲͷΑ͏ʹίετ࠷దԽʹऔΓ૊Μ͔ͩ - ࠷దԽ ΞΧ΢ϯτ αʔϏε ݱঢ় ࢪࡦ ࡟ݮֹ ೉౓ ༏ઌॱҐ ํ਑ Account A RDS m5.8xlarge εϖοΫ࠷దԽ $XXX/݄ 5 3 XXXͷͨΊอཹ Account A S3 ແظݶอଘ ϥΠϑαΠΫϧ ϙϦγʔઃఆ $XXX/݄ 2 2 ࣮ࢪ͢Δ Account B ElastiCache ෆཁϦιʔεՔ ಇ Ϧιʔε࡟আ $XXX/݄ 1 1 ࣮ࢪ͢Δ Account A DynamoDB ΦϯσϚϯυΩ ϟύγςΟ ϦβʔϒυΩϟ ύγςΟߪೖ $XXX/݄ 3 4 XXXͷͨΊ࣮ࢪ ͠ͳ͍ ɾɾɾ

Slide 20

Slide 20 text

03 ۩ମతͳίετ࠷దԽࢪࡦ

Slide 21

Slide 21 text

S3 VPCΤϯυϙΠϯτΛར༻͢Δ 03 ۩ମతͳίετ࠷దԽࢪࡦ • ϓϥΠϕʔταϒωοτ͔ΒS3ΞΫηεͷࡍʹ͸NAT GateawayΛ௨ΔΑ͏ʹͳ͍ͬͯͨ • S3ʹஔ͔ΕͨେྔͷassetσʔλʹΞΫηε͢ΔͨΊಛʹྉ͕ۚߴ͘ͳ͍ͬͯͨ ※ ap-northeast-1ϦʔδϣϯͰͷ2023೥8݄25೔ݱࡏͷՁ֨ ແྉ Private subnet Public subnet VPC Endpoint (Gateway) AWS Fargate NAT Gateway Amazon Simple Storage Service (Amazon S3) asset $0.062/GB ※

Slide 22

Slide 22 text

• ΄ͱΜͲͷS3όέοτʹϥΠϑαΠΫϧϙϦγʔ͕ઃఆ͞Ε͍ͯͳ͔ͬͨ • S3 Storage LensͰංେԽ͍ͯ͠ΔόέοτΛಛఆ͠ରԠΛߦͬͨ S3ϥΠϑαΠΫϧϙϦγʔΛઃఆ͢Δ 03 ۩ମతͳίετ࠷దԽࢪࡦ S3 Standard S3 Glacier Instant Retrieval Archive Delete όέοτ͝ͱʹཁ݅ ʹ߹Θͤͯઃఆ Ҡߦ࣌ʹίετ͕௓ Ͷͳ͍͜ͱΛ֬ೝ

Slide 23

Slide 23 text

• σϑΥϧτͰContainer Insights༗ޮԽʹͳ͍ͬͯͨ • ಛʹ։ൃ؀ڥͰ͸50ۙ͘ͷECSΫϥελʔ͕ར༻͞Ε͓ͯΓɺେྔͷΧελϜϝτϦΫε ͕ૹ৴͞Ε͍ͯͨ ։ൃ؀ڥͷContainer InsightsແޮԽ͢Δ 03 ۩ମతͳίετ࠷దԽࢪࡦ େྔͷΧελ ϜϝτϦΫε CloudWatch ECS Cluster ECS Cluster ECS Cluster ɾ ɾ ɾ

Slide 24

Slide 24 text

• ۀ຿࣌ؒʹ߹Θͤͯࣗಈىಈ/ఀࢭΛߦ͍͕ͬͯͨɺҰ೔தར༻͞Εͳ͍͜ͱ΋͋ͬͨ • ։ൃऀ͕slack commandΛ࢖ͬͯ޷͖ͳλΠϛϯάͰ؀ڥΛ্ཱͪ͛ΒΕΔΑ͏ʹͨ͠ ։ൃ؀ڥΛσϑΥϧτఀࢭʹ͢Δ 03 ۩ମతͳίετ࠷దԽࢪࡦ User AWS Lambda ໷ؒࣗಈఀࢭ EC2 & Fargate slack command API Call Πϯϑϥىಈ

Slide 25

Slide 25 text

• CloudWatch Logsͷϩάอ࣋ظؒઃఆ • ։ൃ؀ڥ΁ͷAuroraಉظσʔλͷݟ௚͠ • ෆཁϦιʔεͷఀࢭ/࡟আ • AuroraόοΫΞοϓσʔλอ࣋ظؒݟ௚͠ • ։ൃ؀ڥϦιʔεͷڞ௨Խ • etc. ͦͷଞͷࢪࡦ 03 ۩ମతͳίετ࠷దԽࢪࡦ

Slide 26

Slide 26 text

04 ͦͷଞͷऔΓ૊Έ

Slide 27

Slide 27 text

• ि࣍ఆྫͰͷίετ֬ೝ͸ର৅ΞΧ΢ϯτΛݶఆ͍ͯ͠ΔͨΊɺ݄࣍ͰΞΧ΢ϯτશମͷ ίετਪҠΛݟΔΑ͏ʹ͍ͯ͠Δ(ݱঢ়͸खಈͷͨΊྑ͍ํ๏Λ໛ࡧத) ݄࣍ͰΞΧ΢ϯτશମͷίετΛৼΓฦΔ 04 ͦͷଞͷऔΓ૊Έ ຖ݄ ROIΛධՁ

Slide 28

Slide 28 text

• ։ൃ؀ڥ͸ಉҰϦιʔε͕ෳ਺͋Γɺಛੑ͕ҟͳΔͨΊɺCIDͷଞʹNew RelicΛ׆༻ͯ͠ ֤໘ͷར༻ঢ়گ΋ݟ͑ΔΑ͏ʹ͍ͯ͠Δ ։ൃ؀ڥར༻ঢ়گΛՄࢹԽ͢Δ 04 ͦͷଞͷऔΓ૊Έ

Slide 29

Slide 29 text

05 ·ͱΊͱࠓޙͷ՝୊

Slide 30

Slide 30 text

• CFMϑϨʔϜϫʔΫʹଇΓίετՄࢹԽͷ࢓૊ΈΛಋೖͨ͜͠ͱͰɺFinOps࣮ફͷͨΊ ͷୈҰาΛ౿Έग़͢͜ͱ͕Ͱ͖ͨ • ΫΠοΫ΢Οϯ࠷దԽΛ࣮ࢪ͢Δ͜ͱͰ୹ظؒͰ໿$10,000/݄ͷίετΛ࡟ݮ͢Δ͜ͱʹ ੒ޭͨ͠ ·ͱΊ 05 ·ͱΊͱࠓޙͷ՝୊

Slide 31

Slide 31 text

• ύϒϦοΫIPv4ͷ༗ྉԽʹ൐͏ରԠΛݕ౼/࣮ࢪ͢Δ • αʔϏε͝ͱʹத௕ظతͳ੒௕Λߟྀͨ͠ίετ࠷దԽࢦඪΛݕ౼͢Δ
 (ROIΛݟΔ͚ͩͰ͸ෛՙରࡦͷͨΊͷϦιʔε૿ڧ࣌౳ʹਖ਼͘͠ධՁͰ͖ͳ͍) • FinOpsΛ࣮ફ͢ΔͨΊͷ࢓૊ΈΛ੔͍͑ͯ͘ • ίετͷઈର஋͕େ͖͘ͳ͍Ϧιʔεʹ͍ͭͯ΋࠷దԽ༨஍͕͋Δ͔෼ੳΛߦ͏ • Savings Plans / Reserved InstanceͷߪೖઓུΛݟ௚͢ • etc. ࠓޙͷ՝୊ 05 ·ͱΊͱࠓޙͷ՝୊

Slide 32

Slide 32 text

• 2023೥3݄29೔ൃച • ͲͷΑ͏ʹAWSͷίετ࠷దԽʹऔΓ૊ΜͰ͍ͬͨ ΒΑ͍͔ɺΦϯϓϨϛεͷ࣌୅ͱ͸Կ͕ҧ͏ͷ͔ମ ܥతʹ·ͱ·ΊΒΕ͍ͯΔ • ॳֶऀͷํʹ΋Θ͔Γ΍͘͢ஸೡʹॻ͔Ε͍ͯΔ ͓͢͢Ίͷॻ੶ 05 ·ͱΊͱࠓޙͷ՝୊ https://www.kadokawa.co.jp/product/322104000266/