Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Developers.IO_Nagoya_Well-Architected_Framework...
Search
wanda
September 12, 2019
0
980
Developers.IO_Nagoya_Well-Architected_Frameworkでクラウドジャーニー.pdf
Well-Architeted Framework
wanda
September 12, 2019
Tweet
Share
More Decks by wanda
See All by wanda
AWS IoT Greengrass V2で始める デバイスアプリケーションの継続的開発
ganota
0
1.1k
試して分かった!AWS を使った PLCのデータ収集と分析基盤の実践ノウハウ #FA設備技術勉強会#13
ganota
1
16k
AWS IoT SiteWise 導入時に検討するべき3つのポイント
ganota
0
4.7k
SORACOM LTE-M Button Plusと100均ショップの商品でIoTポストを作ってみた
ganota
0
1.5k
Dome9で始めるAWSセキュリティリスク管理.pdf
ganota
0
3.8k
Featured
See All Featured
Unsuck your backbone
ammeep
668
57k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.5k
Why Our Code Smells
bkeepers
PRO
334
57k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
Agile that works and the tools we love
rasmusluckow
327
21k
Optimising Largest Contentful Paint
csswizardry
33
2.9k
Into the Great Unknown - MozCon
thekraken
31
1.5k
What's new in Ruby 2.0
geeforr
342
31k
Raft: Consensus for Rubyists
vanstee
136
6.6k
Why You Should Never Use an ORM
jnunemaker
PRO
53
9k
Fireside Chat
paigeccino
32
3k
Intergalactic Javascript Robots from Outer Space
tanoku
268
27k
Transcript
"84Ϋϥυδϟʔχʔ͡ΊͷҰา ʮ"848FMM"SDIJUFDUFEϑϨʔϜϫʔΫʯͰΔ "84ϕετϓϥΫςΟε "84ࣄۀຊ෦ɹίϯαϧςΟϯά෦ ొஃऀࢢాળٱ
ࣗݾհ • ࢢాળٱ • AWSࣄۀຊ෦ ίϯαϧςΟϯά෦ ◦ ιϦϡʔγϣϯΞʔΩςΫτ • େࡕΦϑΟεॴଐ
• ͖ͳAWSαʔϏε ◦ AWS IoTܥαʔϏε
ͱΜ Ϡό͔ͬͨͨͰ͢
εϥΠυޙͰೖख͢Δ͜ͱ͕ग़དྷ·͢ͷͰ ൃදதͷ༰ΛϝϞ͢Δඞཁ͋Γ·ͤΜɻ ࣸਅࡱӨΛ͢Δ߹ ϑϥογϡɾγϟολʔԻ͕ग़ͳ͍Α͏ʹྀ͍ͩ͘͝͞
ຊͷ༰ • Well-Archtected Frameworkͱʁ • Ұൠతͳઃܭͷݪଇ • ʮ৴པੑͷபʯ • Well-Arctected
Frameworkͷ͍ํͷΠϝʔδΛѲ • ࣌ؒత߹͔Βʮபʯͷશ߲ʹ͍͓ͭͯ͠·ͤΜɻ • ʮ৴པੑͷபʯ͔Βൈਮͯ͠۩ମతͳར༻๏Λ͓͑͠·͢ • Well-Architected Tool ͷհͱ͍ํ • ·ͱΊ
6 ͱʁ
7 What’s AWS Well-Architected Framework ? • ΞʔΩςΫνϟͷઃܭɾӡ༻ʹ͓͚ΔϕετϓϥΫςΟεू • ઃܭݪଇͱ5ͭͷ(ப)ʹผΕ࣭ͨͱճܗࣜ
• ҆શͰߴ͍ύϑΥʔϚϯεɺোੑΛඋ͑ޮతͳΠϯϑϥߏஙͷαϙʔτ • 5ຊͷபʗ46ͷ࣭Λ௨ͯ͠ઃܭ͕ϕετϓϥΫςΟεʹଇ͍ͬͯΔ͔Λ֬ೝ͢Δ ߟ͑ํʗϓϩηε ӡ༻্ͷ ༏लੑ ηΩϡϦ ςΟ ৴པੑ ύϑΥʔ Ϛϯε ޮ ίετ ࠷దԽ
8 Ϋϥυʹ͓͚ΔҰൠతͳઃܭݪଇ
9 Ϋϥυʹ͓͚ΔҰൠతͳઃܭͷݪଇ ✓ ඞཁͳΩϟύγςΟΛצʹཔΒͳ͍ ✓ ຊ൪نͰγεςϜΛςετ͢Δ ✓ ΞʔΩςΫνϟ্ͷ࣮ݧͷճΛ૿͢ҝʹࣗಈԽΛऔΓೖΕΔ ✓ ൃలతͳΞʔΩςΫνϟΛड͚ೖΕΔ
✓ σʔλܭଌʹج͍ͮͯΞʔΩςΫνϟΛܾఆ͢Δ ✓ ຊ൪Ͱఆ͞ΕΔτϥϒϧΛ͋Β͔͡Ίςετ͠ରࡦ͢Δ
10 ඞཁͳΩϟύγςΟʔΛצʹཔΒͳ͍ ՝ • ໌֬ͳࠜڌͳ͘ઌߦͯ͠ϋʔυΣΞͷௐୡΛߦͬͨ߹ɺແବ ͳϦιʔε͕ൃੜ͢Δ߹͕͋ΔʢٯવΓʣ • ΩϟύγςΟϓϥϯχϯάʹ͕͔͔࣌ؒΔ ΫϥυαʔϏεΛར༻͢Δ߹ •
ॊೈͳΩϟύγςΟมߋ͕Մೳ • มߋͷࠜڌʹͳΔϝτϦΫεΛ༰қʹऩूՄೳ • ࣄ࣮ʹج͍ͮͨઃܭ
11 ຊ൪نͰγεςϜΛςετ͢Δ ՝ • ςετͷͨΊʹຊ൪ڥͱಉͷڥΛ४උ͢Δ͜ͱ͕ࠔ • ෆेͳςετ͔͠͠ͳ͍··αʔϏεΛϦϦʔε͠ɺޙʹ՝͕ݦࡏԽ ΫϥυαʔϏεΛར༻͢Δ߹ • ςετதͷΈϦιʔεΛϓϩϏδϣχϯάʗςετऴྃޙʹআ͕Մೳ
• ΠϯϑϥΛίʔυԽ͢Δ͜ͱͰ༰қʹෳՄೳ
12 ΞʔΩςΫνϟ্ͷ࣮ݧͷճΛ૿͢ҝʹࣗಈԽΛऔΓೖΕΔ ՝ • ख࡞ۀʹΑΔͷ૿ՃɺϛεʹΑΔखΓ • ͦͦɺຊ൪ڥΛมߋ͢ΔϦεΫ͕ߴͯ͘࡞ۀͰ͖ͳ͍ ΫϥυαʔϏεΛར༻͢Δ߹ • ߏෳΛ༰қʹࣗಈԽ͢Δ͜ͱ͕Մೳ
13 ൃలతͳΞʔΩςΫνϟΛड͚ೖΕΔ ՝ • ϏδωεతͳมԽʹΠϯϑϥ͕ैͰ͖ͳ͍ ʢϏδωεͷʹΑΔΞΫηεʗσʔλྔͷ૿ՃɺͳͲʣ ΫϥυαʔϏεΛར༻͢Δ߹ • ࣗಈԽෳ͕༰қͰ͋Δ͜ͱʹΑΓै͍͢͠ ʢʹઃܭ͓ΑͼߏมߋͷϦεΫΛݮʣ
14 σʔλܭଌʹج͍ͮͯΞʔΩςΫνϟΛܾఆ͢Δ ՝ • ಠࣗͰࢹγεςϜΛߏங͢Δඞཁ͕͋Δ ΫϥυαʔϏεΛར༻͢Δ߹ • ֤αʔϏεͰ༷ʑͳϝτϦΫεΛऔಘՄೳ • ࢹϩΪϯάΛߦ͏αʔϏεͷఏڙ
15 ຊ൪Ͱఆ͞ΕΔτϥϒϧΛ͋Β͔͡Ίςετ͠ɺରࡦ͢Δ ՝ • োൃੜ࣌ͷαʔϏεͷӨڹΛࣄલʹ֬ೝ͢Δ͜ͱ͕ࠔ ΫϥυαʔϏεΛར༻͢Δ߹ • γεςϜͷෳ͕༰қʢʹഁյతͳςετΛؾܰʹ࣮ࢪ͢Δ͜ͱ͕Մೳʣ • ςετதͷΈϦιʔεΛϓϩϏδϣχϯά͠ɺςετऴྃޙʹআՄೳ
16 Ұൠతͳઃܭͷݪଇʢ࠶ܝʣ ✓ ඞཁͳΩϟύγςΟʔΛצʹཔΒͳ͍ ✓ ຊ൪نͰγεςϜΛςετ͢Δ ✓ ࣗಈԽʹΑͬͯΞʔΩςΫνϟ্ͷ࣮ݧΛ༰қʹ͢Δ ✓ ൃలతͳΞʔΩςΫνϟΛड͚ೖΕΔ
✓ σʔλܭଌʹج͍ͮͯΞʔΩςΫνϟΛܾఆ͢Δ ✓ ຊ൪Ͱఆ͞ΕΔτϥϒϧΛ͋Β͔͡Ίςετ͠ɺରࡦ͢Δ
17 ʮ৴པੑʯʹؔ͢Δ࣭ࣄ߲ͱվળํ๏
18 ৴པੑʹ͓͚Δઃܭݪଇ ✓ ෮چखॱΛςετ͢Δ ✓ ো͔Βͷࣗಈతʹ෮چ͢Δ ✓ ਫฏํʹεέʔϧͯ͠૯߹తͳγεςϜͷՄ༻ੑΛ্͢Δ ✓ ΩϟύγςΟʔΛצʹཔΒͳ͍
✓ ࣗಈԽͷมߋΛཧ͢Δ
19 ෮چखॱͷςετͷ࣮ࢪ ՝ • ΦϯϓϨڥͩͱཏతͳγφϦΦʹΑΔςετ͕͍͠ ΫϥυαʔϏεΛར༻͢Δ߹ • ࣗಈԽʹΑΓ༷ʑͳγφϦΦͰγϛϡϨʔγϣϯΛ܁Γฦ࣮͠ߦͰ͖Δ • ͕͋ͬͨ߹ͷमਖ਼ͱݕূ͕༰қʹͰ͖Δ
20 ো͔Βࣗಈతʹ෮چ͢Δ ՝ • ཧతͳ੍Ͱࣗಈ෮چͰ͖Δൣғ͕ݶఆ͞ΕΔ ΫϥυαʔϏεΛར༻͢Δ߹ • ΠϕϯτۦಈͰࣗಈ෮چ͢ΔΈΛ༰қʹߏஙͰ͖Δ • αʔϏεোΛىͣ͜͞ʹҟৗͳՕॴΛमਖ਼ɺਖ਼ৗͳঢ়ଶΛܧଓͰ͖Δ
21 ਫฏํʹεέʔϧͯ͠૯߹తͳγεςϜͷՄ༻ੑΛ্ͤ͞Δ ՝ • ཧతͳ੍ͰϦιʔεෆΛղফͰ͖ͳ͍ʢϦιʔε֦ுͰ͖ͳ͍ʣ • ϞϊϦγοΫͳγεςϜͩͱ୯Ұো͕શମʹӨڹ͢Δ ΫϥυαʔϏεΛར༻͢Δ߹ • ϚΠΫϩαʔϏεԽͯ͠োൣғΛݶఆతʹܰݮ
• ֤ϨΠϠΛૄ݁߹ʹ࿈݁͠ϨΠϠຖʹεέʔϧΞτ • AutoScalingͷར༻ͳͲ • Single-AZΑΓMulti-AZΛجຊߏʹ • ੵۃతʹϚωʔδυαʔϏεΛར༻ͯ͠ϦιʔεෆΛճආ
22 ඞཁͳΩϟύγςΟʔΛצʹཔΒͳ͍ ՝ • ࠜڌͷແ͍ఆ্ͷϐʔΫΞΫηεΛݩʹͨ͠ϓϥϯχϯά • ཧతͳ੍Ͱఆ֎ͷϦιʔεෆΛղফͰ͖ͳ͍ʢϦιʔε֦ுͰ͖ͳ͍ʣ • Ծఆͨ͠ΞΫηεྔͳͷͰաϦιʔεʹͳͬͨΓɺٯʹϦιʔεෆʹͳΔ ΫϥυαʔϏεΛར༻͢Δ߹
• ॊೈͳΩϟύγςΟมߋ͕Մೳ • มߋͷࠜڌͱͳΔϝτϦΫεΛ༰қʹऩू • σʔλυϦϒϯͳϓϥϯχϯά • ࠷దͳϓϩϏδϣχϯάʢաͰաখͰͳ͍ʣ
23 ࣗಈԽʹΑΔมߋͷཧ ՝ • มߋ࡞ۀख࡞ۀͷ߹͕ଟ͍ • ୭͕͍ͭͲ͏͍͏มߋΛͨ͠ͷ͔ཧ͕͍͠ɻ • มߋखॱΛه͍ͯͯ͠۩ମతͳมߋ༰͕ ͔ΓͮΒ͍
ΫϥυαʔϏεΛར༻͢Δ߹ • ΠϯϑϥετϥΫνϟΛίʔυʹΑΓఆٛͰ͖Δ • σϓϩΠϝϯτύΠϓϥΠϯΛࣗಈԽͰ͖Δ
24 ϕετϓϥΫςΟε ʙ৴པੑʹؔ͢Δ࣭ࣄ߲ͱվળํ๏ʙ
25 9ͭͷ࣭ 1. AWSαʔϏεͷ੍ݶΛͲͷΑ͏ʹཧ͍ͯ͠·͔͢ʁ 2. AWS্ͰͷωοτϫʔΫߏΛͲͷΑ͏ʹઃܭ͍ͯ͠·͔͢ʁ 3. γεςϜʹର͢ΔधཁͷมԽʹͲͷΑ͏ʹରԠ͍ͯ͠·͔͢ʁ 4. AWSϦιʔεΛͲͷΑ͏ʹϞχλϦϯά͍ͯ͠·͔͢ʁ
5. มߋΛͲͷΑ͏ʹ࣮ࢪ͍ͯ͠·͔͢ʁ 6. σʔλΛͲͷΑ͏ʹόοΫΞοϓ͍ͯ͠·͔͢ʁ 7. γεςϜ͕ίϯϙʔωϯτͷΤϥʔʹ͑ΔΑ͏ʹͲͷΑ͏ʹઃܭ͍ͯ͠·͔͢ 8. γεςϜͷྗੑΛͲͷΑ͏ʹςετ͍ͯ͠·͔͢ʁ 9. ࡂ࣌ͷϦΧόϦϓϥϯͲ͏ͳ͍ͬͯ·͔͢ʁ
26 9ͭͷ࣭ 1. AWSαʔϏεͷ੍ݶΛͲͷΑ͏ʹཧ͍ͯ͠·͔͢ʁ 2. AWS্ͰͷωοτϫʔΫߏΛͲͷΑ͏ʹઃܭ͍ͯ͠·͔͢ʁ 3. γεςϜʹର͢ΔधཁͷมԽʹͲͷΑ͏ʹରԠ͍ͯ͠·͔͢ʁ 4. AWSϦιʔεΛͲͷΑ͏ʹϞχλϦϯά͍ͯ͠·͔͢ʁ
5. มߋΛͲͷΑ͏ʹ࣮ࢪ͍ͯ͠·͔͢ʁ 6. σʔλΛͲͷΑ͏ʹόοΫΞοϓ͍ͯ͠·͔͢ʁ 7. γεςϜ͕ίϯϙʔωϯτͷΤϥʔʹ͑ΔΑ͏ʹͲͷΑ͏ʹઃܭ͍ͯ͠·͔͢ 8. γεςϜͷྗੑΛͲͷΑ͏ʹςετ͍ͯ͠·͔͢ʁ 9. ࡂ࣌ͷϦΧόϦϓϥϯͲ͏ͳ͍ͬͯ·͔͢ʁ
27 1/9ɽ AWSαʔϏεͷ੍ݶΛͲͷΑ͏ʹཧ͍ͯ͠·͔͢ʁ • ੍ݶͷཧ͍ͯ͠ͳ͍ • ੍ݶΛࢹ͠ཧΛߦ͍ͬͯΔ • ࢹΛࣗಈԽ੍͠ݶͷཧΛߦ͍ͬͯΔ •
ΞʔΩςΫνϟΛհͯ͠ݻఆαʔϏεͷ੍ݶʹରԠ͍ͯ͠Δ • ϑΣΠϧΦʔόʔʹରԠ͢ΔͨΊʹɺݱࡏͷαʔϏε੍ݶͱ࠷େ༻ྔͱͷؒʹ ेͳࠩΛ֬อ͍ͯ͠Δ • ؔ࿈͢ΔશͯͷΞΧϯτͱϦʔδϣϯશମͷαʔϏε੍ݶΛཧ͍ͯ͠Δ
28 1/9ɽ AWSαʔϏεͷ੍ݶΛͲͷΑ͏ʹཧ͍ͯ͠·͔͢ʁ • ੍ݶͷཧ͍ͯ͠ͳ͍ • ੍ݶΛࢹ͠ཧΛߦ͍ͬͯΔ • ࢹΛࣗಈԽ੍͠ݶͷཧΛߦ͍ͬͯΔ •
ΞʔΩςΫνϟΛհͯ͠ݻఆαʔϏεͷ੍ݶʹରԠ͍ͯ͠Δ • ϑΣΠϧΦʔόʔʹରԠ͢ΔͨΊʹɺݱࡏͷαʔϏε੍ݶͱ࠷େ༻ྔͱͷؒʹ ेͳࠩΛ֬อ͍ͯ͠Δ • ؔ࿈͢ΔશͯͷΞΧϯτͱϦʔδϣϯશମͷαʔϏε੍ݶΛཧ͍ͯ͠Δ
29 ࣗಈతͳ؇ EC2ͷ੍ݶίϯιʔϧͰ֬ೝ • Πϯελϯεɺϗετ • EBSʢϓϩϏδϣϯυIOPSɺετϨʔδαΠζʣ • ωοτϫʔΩϯά •
AutoScaling • ϩʔυόϥϯγϯά
30 ࣗಈతͳ؇
31 1/9ɽ AWSαʔϏεͷ੍ݶΛͲͷΑ͏ʹཧ͍ͯ͠·͔͢ʁ • ੍ݶͷཧ͍ͯ͠ͳ͍ • ੍ݶΛࢹ͠ཧΛߦ͍ͬͯΔ • ࢹΛࣗಈԽ੍͠ݶͷཧΛߦ͍ͬͯΔ •
ΞʔΩςΫνϟΛհͯ͠ݻఆαʔϏεͷ੍ݶʹରԠ͍ͯ͠Δ • ϑΣΠϧΦʔόʔʹରԠ͢ΔͨΊʹɺݱࡏͷαʔϏε੍ݶͱ࠷େ༻ྔͱͷؒʹ ेͳࠩΛ֬อ͍ͯ͠Δ • ؔ࿈͢ΔશͯͷΞΧϯτͱϦʔδϣϯશମͷαʔϏε੍ݶΛཧ͍ͯ͠Δ
32 Trusted Advisor ֤छϦιʔεͷར༻ঢ়گͱαʔϏε੍ݶʹର͢Δঢ়ଶΛ֬ೝ • ݱࡏͷར༻ঢ়گͱ੍ݶʹର͢Δঢ়ଶΛʮGreenʯʮYellowʯʮRedʯͰදࣔ • ʮϏδωεʯʮΤϯλʔϓϥΠζʯαϙʔτར༻ͷ߹ຖिࣗಈͰߋ৽ • APIͰνΣοΫΛߋ৽Մೳ
AWS αϙʔτAPIͷར༻ Trusted Advisor͕ఏڙ͢ΔνΣοΫͷ໊લͱIDΛऔಘ Trusted AdvisorͷνΣοΫΛ࣮ߦ Trusted AdvisorͷνΣοΫͷৄࡉใͱαϚϦʔΛऔಘ Trusted AdvisorνΣοΫͷߋ৽ ֤Trusted AdvisorνΣοΫͷεςʔλεΛऔಘ
1/9ɽ AWSαʔϏεͷ੍ݶΛͲͷΑ͏ʹཧ͍ͯ͠·͔͢ʁ • ੍ݶͷཧ͍ͯ͠ͳ͍ • ੍ݶΛࢹ͠ཧΛߦ͍ͬͯΔ • ࢹΛࣗಈԽ੍͠ݶͷཧΛߦ͍ͬͯΔ • ΞʔΩςΫνϟΛհͯ͠ݻఆαʔϏεͷ੍ݶʹରԠ͍ͯ͠Δ
• ϑΣΠϧΦʔόʔʹରԠ͢ΔͨΊʹɺݱࡏͷαʔϏε੍ݶͱ࠷େ༻ྔͱͷؒʹ ेͳࠩΛ֬อ͍ͯ͠Δ • ؔ࿈͢ΔશͯͷΞΧϯτͱϦʔδϣϯશମͷαʔϏε੍ݶΛཧ͍ͯ͠Δ
34 CloudWatchͰαʔϏε੍ݶΛ௨͢Δ Trusted AdvisorͷαʔϏε੍ݶʹؔ͢ΔϝτϦΫε͕CloudWatchʹൃߦ͞ΕΔ • CloudWatch Alarmͷ࡞ɿ͖͍͠ͱͯ͠ར༻ʮ0.00ʙ1.00ʯΛࢦఆ • CloudWatch EventsͰεςʔλεͷ
มߋΛݕग़Մೳ • ઃఆϦʔδϣϯʮN.Virginiaʯ https://docs.aws.amazon.com/ja_jp/awssupport/latest/user/cloudwatch-metrics-ta.html https://dev.classmethod.jp/cloud/aws/sonobe-trustedadvisor-cloudwatch-integrate/
35 CloudWatchͰαʔϏε੍ݶΛ௨͢Δ CloudWatch EventsͷΠϕϯτύλʔϯ { "source": [ "aws.trustedadvisor" ], "detail-type":
[ "Trusted Advisor Check Item Refresh Notification" ], "detail": { "status": [ "ERROR" ], "check-name": [ "Service Limits", "EC2 Elastic IP Addresses", "Security Groups - Specific Ports Unrestricted" ] } }
36 AWS Limit Monitor ʮAWSιϦϡʔγϣϯʯͰఏڙ͞Ε͍ͯΔςΫχΧϧϦϑΝϨϯε࣮ • AWSϦιʔεͷར༻ঢ়گΛɺ্ݶʹ͍͖͍ۙ͠ʹୡ͢Δͱ௨
37 AWS Service Quotas • AWSαʔϏεͷΫΥʔλ(੍ݶ)ΛཧͰ͖ΔαʔϏεʢ20196݄ϦϦʔεʣ • ະରԠͷαʔϏεαϙʔτηϯλʔ͔ΒαϙʔτέʔεΛ࡞ͯ͠ਃ • CloudWatchΞϥʔϜͰΫΥʔλͷ͖͍͠ʹج͍ͮͨ௨͕Մೳ
38 AWS Service Quotas
AWS Service Quotas
40 1/9ɽ AWSαʔϏεͷ੍ݶΛͲͷΑ͏ʹཧ͍ͯ͠·͔͢ʁ • ੍ݶͷཧ͍ͯ͠ͳ͍ • ੍ݶΛࢹ͠ཧΛߦ͍ͬͯΔ • ࢹΛࣗಈԽ੍͠ݶͷཧΛߦ͍ͬͯΔ •
ΞʔΩςΫνϟΛհͯ͠ݻఆαʔϏεͷ੍ݶʹରԠ͍ͯ͠Δ • ϑΣΠϧΦʔόʔʹରԠ͢ΔͨΊʹɺݱࡏͷαʔϏε੍ݶͱ࠷େ༻ྔͱͷؒʹ ेͳࠩΛ֬อ͍ͯ͠Δ • ؔ࿈͢ΔશͯͷΞΧϯτͱϦʔδϣϯશମͷαʔϏε੍ݶΛཧ͍ͯ͠Δ
41 1/9ɽ AWSαʔϏεͷ੍ݶΛͲͷΑ͏ʹཧ͍ͯ͠·͔͢ʁ • ੍ݶͷཧ͍ͯ͠ͳ͍ • ੍ݶΛࢹ͠ཧΛߦ͍ͬͯΔ • ࢹΛࣗಈԽ੍͠ݶͷཧΛߦ͍ͬͯΔ •
ΞʔΩςΫνϟΛհͯ͠ݻఆαʔϏεͷ੍ݶʹରԠ͍ͯ͠Δ • ϑΣΠϧΦʔόʔʹରԠ͢ΔͨΊʹɺݱࡏͷαʔϏε੍ݶͱ࠷େ༻ྔͱͷؒʹ ेͳࠩΛ֬อ͍ͯ͠Δ • ؔ࿈͢ΔશͯͷΞΧϯτͱϦʔδϣϯશମͷαʔϏε੍ݶΛཧ͍ͯ͠Δ
42 9ͭͷ࣭ 1. AWSαʔϏεͷ੍ݶΛͲͷΑ͏ʹཧ͍ͯ͠·͔͢ʁ 2. AWS্ͰͷωοτϫʔΫߏΛͲͷΑ͏ʹઃܭ͍ͯ͠·͔͢ʁ 3. γεςϜʹର͢ΔधཁͷมԽʹͲͷΑ͏ʹରԠ͍ͯ͠·͔͢ʁ 4. AWSϦιʔεΛͲͷΑ͏ʹϞχλϦϯά͍ͯ͠·͔͢ʁ
5. มߋΛͲͷΑ͏ʹ࣮ࢪ͍ͯ͠·͔͢ʁ 6. σʔλΛͲͷΑ͏ʹόοΫΞοϓ͍ͯ͠·͔͢ʁ 7. γεςϜ͕ίϯϙʔωϯτͷΤϥʔʹ͑ΔΑ͏ʹͲͷΑ͏ʹઃܭ͍ͯ͠·͔͢ 8. γεςϜͷྗੑΛͲͷΑ͏ʹςετ͍ͯ͠·͔͢ʁ 9. ࡂ࣌ͷϦΧόϦϓϥϯͲ͏ͳ͍ͬͯ·͔͢ʁ ʢҧ͏࣭ͷ༰ݟͯΈ·͠ΐ͏ɻʣ
43 4/9ɽAWSϦιʔεΛͲͷΑ͏ʹϞχλϦϯά͍ͯ͠·͔͢ʁ • શͯͷʹ͓͚ΔϫʔΫϩʔυͰࢹ͍ͯ͠Δ • ϞχλϦϯάʹج͍ͮͨ௨Λ࣮ࢪ͍ͯ͠Δ • Πϕϯτൃੜ࣌ʹࣗಈରԠΛ࣮ߦ͍ͯ͠Δ • ఆظతʹϨϏϡʔΛߦ͍ͬͯΔ
44 4/9ɽAWSϦιʔεΛͲͷΑ͏ʹϞχλϦϯά͍ͯ͠·͔͢ʁ • શͯͷʹ͓͚ΔϫʔΫϩʔυͰࢹ͍ͯ͠Δ • ϞχλϦϯάʹج͍ͮͨ௨Λ࣮ࢪ͍ͯ͠Δ • Πϕϯτൃੜ࣌ʹࣗಈରԠΛ࣮ߦ͍ͯ͠Δ • ఆظతʹϨϏϡʔΛߦ͍ͬͯΔ
45 AWSαʔϏεͷϩάͷ༗ޮԽ • S3αʔόΞΫηεϩά • Elastic Load BalancerͷΞΫηεϩά • VPCϑϩʔϩά
• CloudWatch LogsɺS3ʹग़ྗՄೳ • ར༻༻్ίετײͰબɻ • ClouTrail • CloudWatch LogsͰαʔό্ͷϩάΛετϦʔϛϯά • CloudWatch Agentͷར༻ • ECSͷίϯςφϩάΛCloudWatch Logsʹग़ྗ • fargateͷ߹ɺϩάυϥΠόʔawslogsͱsplunk • LambdaͷϩάΛCloudWatch LogsʹετϦʔϛϯά
46 ूதϩΪϯά • ूதϩΪϯάˍσʔλՄࢹԽ • ϓϥΠϚϦͷΞΧϯτͰूதϩΪϯά • kibanaCognitoͰೝূ • AWSιϦϡʔγϣϯͰςϯϓϨʔτެ։
• $1.44ʙ12.43/݄
47 Network Load Balancerͷϩά • Netowork Load BalancerʮTLSʯͷ߹ͷΈ • Ϧεφʔ͕ʮTCPʯͷͱ͖ग़ྗ͞Εͳ͍
• ϩάͷϑΟʔϧυL4૬ͷใ͕ग़ྗ • UserAgentϦΫΤετ༰ͳͲ͕औΕͳ͍ • ҰൠతͳWebΞΫηεϩάͷղੳ༻్ʹෆ͖ • EC2ଆͰऔಘ͢Δඞཁ͕͋Δ tls 1.0 2018-12-20T02:59:40 net/my-network-loadbalancer/c6e77e28c25b2234 g3d4b5e8bb8464cd 72.21.218.154:51341 172.100.100.185:443 5 2 98 246 - arn:aws:acm:us-east-2:671290407336:certificate/2a108f19-aded-46b0-8493- c63eb1ef4a99 - ECDHE-RSA-AES128-SHA tlsv12 - my-network-loadbalancer-c6e77e28c25b2234.elb.us-east-2.amazonaws.com
48 CloudWatch Logs • Lambda, Elasticsearch Service, KinesisͷαϒεΫϦϓγϣϯϑΟϧλ • ϑΟϧλύλʔϯʹԠͯ͡ϦΞϧλΠϜʹసૹ
• Kinesis Kinesis Data Stream ͱ Kinesis Data Firehose • KinesisͷαϒεΫϦϓγϣϯϑΟϧλʔίϯιʔϧ͔ΒઃఆෆՄ
49 CloudWatch logs Insight • CloudWatch logsͷϩάΛΠϯλϥΫςΟϒʹੳɾՄࢹԽ • ಠࣗܗࣜͷΫΤϦίϚϯυΛൃߦ •
ίϯιʔϧͷURL͕ͦͷΫΤϦͷ࣮ߦ݁ՌͷURLʹͳΔ • ॊೈʹੳ͍ͨ͠߹AthenaΛݕ౼ stats avg(bytes), min(bytes), max(bytes) by srcAddr, dstAddr
50 CloudWatch logs Insight • CSVͰ݁ՌΛΤΫεϙʔτՄೳ • CSV, ASCIIܗࣜͰίϐʔՄೳ •
ΫΤϦίϚϯυهࡌ
51 4/9ɽAWSϦιʔεΛͲͷΑ͏ʹϞχλϦϯά͍ͯ͠·͔͢ʁ • શͯͷʹ͓͚ΔϫʔΫϩʔυͰࢹ͍ͯ͠Δ • ϞχλϦϯάʹج͍ͮͨ௨Λ࣮ࢪ͍ͯ͠Δ • Πϕϯτൃੜ࣌ʹࣗಈରԠΛ࣮ߦ͍ͯ͠Δ • ఆظతʹϨϏϡʔΛߦ͍ͬͯΔ
52 ϞχλϦϯά༰ͷ௨ํ๏ • ి௨ɺϝʔϧ௨ɺ SlackͷಛఆνϟϯωϧʹPost • ి Amazon ConnectTwilioͷར༻ͰՄೳ
53 4/9ɽAWSϦιʔεΛͲͷΑ͏ʹϞχλϦϯά͍ͯ͠·͔͢ʁ • શͯͷʹ͓͚ΔϫʔΫϩʔυͰࢹ͍ͯ͠Δ • ϞχλϦϯάʹج͍ͮͨ௨Λ࣮ࢪ͍ͯ͠Δ • Πϕϯτൃੜ࣌ʹࣗಈରԠΛ࣮ߦ͍ͯ͠Δ • ఆظతʹϨϏϡʔΛߦ͍ͬͯΔ
54 ࣗಈରԠ • Ξϥʔτݕ͔Β෮چ࡞ۀ·ͰࣗಈԽ • ಛఆͷΞϥʔτશʹࣗಈԽ • ࣗಈԽ͕·͘͠ͳ͍ͷผͷΞϓϩʔν • ୲ऀͷஅΛڬΜͩࣗಈԽ
• Slackి௨ޙɺslack͔Β෮چॲཧ / ௨தʹ෮چॲཧ • ϚωʔδυαʔϏεΛར༻ͨ͠ίϯϙʔωϯτͷஔ͖͑ • ྫɿRDSͷMulti-AZ • EC2 Auto RecoveryʹΑΔstop/startࣗಈԽ • ج൫ଆͷোൃੜ࣌ʹՔಇ͢Δج൫ΛΓସ͑
55 ෮چ·ͰͷࣗಈԽ • αʔό্ͷҰ࣍తͳ෮چॲཧΛࣗಈԽ • ෮چ༻ͷCloudWatch Alarmొͯ֬͠ೝ • Systems ManagerͷRun
CommandΛLambdaͰ࣮ߦ • Run CommandͰαʔό্ͷॲཧΛ࣮ߦ • αʔϏεϨϕϧʹԠͨ͡ར༻ • ࠜຊରࡦ·Ͱͷఆॲཧ • AutoScalingͷར༻
56 ෮چ·ͰͷࣗಈԽ-அʹΑΔ෮چ • ௨தͷμΠϠϧϓογϡͰAmazon Connect͔Β෮چ࡞ۀ༻ͷLambdaΛ࣮ߦ • ϓογϡ൪߸ʹΑΓॲཧΛذ • SlackͷεϥογϡίϚϯυͰ෮چ࡞ۀ༻ͷLambdaΛ࣮ߦ •
ো௨༻νϟϯωϧͳͲΛར༻ͨ͠chatops
57 9/9ɽࡂ෮چΛͲͷΑ͏ʹܭը͠·͔͢ʁ • μϯλΠϜͱσʔλଛࣦͷ෮چඪΛఆ͍ٛͯ͠Δ • ఆٛ͞Εͨ෮چઓུΛ༻ͯ͠෮چඪୡͷҝͷࡂ෮چઓུΛఆ͍ٛͯ͠Δ • ো෮چͷ࣮Λςετ࣮ͯ͠Λݕূ͍ͯ͠Δ • ͯ͢ͷมߋͷߏͷͣΕΛཧ͍ͯ͠Δ
• ճ෮ΛࣗಈԽ͍ͯ͠Δ ࠓճ࣌ؒͷ߹্ɺৄࡉׂѪ͍͖ͤͯͨͩ͞·͢ɻ
58 ͜͜·ͰͷৼΓฦΓ • ʮ৴པੑͷபʯʹ͍ͭͯɺ࣭ͱճΛ۩ମతʹݟΔ͜ͱͰWell-Architected Framesworkͷ༰͕۩ମతʹݟ͖͑ͯͨͰ͠ΐ͏͔ʁ • ࣍ʹɺWell-Architected FramesworkΛͬͯɺΞʔΩςΫνϟΛվળ͢Δํ๏ʹ ͍ͭͯݟ͍͖͍ͯͨͱࢥ͍·͢ɻ
59 Well-Architected Frameworkͷ͍ํ
60 ϨϏϡʔͷํ๏ 1. ηϧϑνΣοΫ • ֤νΣοΫ߲ʹճͯ͠ݱঢ়ͷઃܭӡ༻ʹ͍ͭͯ୨Է͠ • Well-Architected tool ·ͨɺಉ༷ͷExcelʹهೖ
2.ϨϏϡʔ • AWS·ͨW-AೝఆύʔτφʔͷιϦϡʔγϣϯΞʔΩςΫτͱϨϏϡʔ • ηϧϑνΣοΫͷ༰ΛूதతʹϨϏϡʔ • վળࡦͷݕ౼σΟεΧογϣϯ • ༏ઌ͚ • ߲ຖʹཁෆཁͷஅ 3.վળ࣮ࢪ • վળࡦʹج͍ͮͨ࠷దԽͷ࣮ࢪ • ఆظతʹ࠶νΣοΫɺϨϏϡʔΛߦ͍࠷దԽΛਐΊΔ
61 ϨϏϡʔϓϩηεͷॏཁϙΠϯτ εςʔΫϗϧμʔશһ͕ϨϏϡʔʹࢀՃ CTOɺΞʔΩςΫτɺ։ൃɺӡ༻ɺଞ Կ͔͕ݟ͔ͭͬͯ୲ऀΛΊͳ͍ ৺ཧత҆શੑͷ֬อɺϨϏϡʔʮࠪʯͰͳ͘ʮ͠߹͍ʯͰ͢ ઃܭॳظஈ֊Ͱͷ࣮ࢪΛਪ खΓͷճආɺमਖ਼͕ࠔͳ՝ͷൃੜΛ༧ ࠷৽ใͷऩूͱͦΕΛ౿·͑ͨܧଓతͳϨϏϡʔ AWSͷ৽αʔϏεʗ৽ػೳͷ׆༻ɺϏδωεڥͷมԽͷରԠ
62 ϨϏϡʔ࣌ͷཹҙ શͯͷϕετϓϥΫςΟεʹରԠ͢Δඞཁ͋Δͷ͔ʁ • ϦεΫվળΛѲͰ͖Δ͜ͱ͕ॏཁ • ϕετϓϥΫςΟεΛຬ͖͔ͨ͢Ͳ͏͔ɺϏδωεڥʹΑͬͯҟͳΔ ϨϏϡʔͷ࣮ࢪΛड͚ೖΕͯΒ͑ͳ͍Մೳੑ • ʮ͍͠ʯɺʮػີใΛѻ͏ͷͰઃܭΛڞ༗Ͱ͖ͳ͍ʯͳͲ
• ʰϦεΫΛ๊͑ͨ··ͰαʔϏεΛ։࢝͠·͔͢ʁʱ
63 Well-Architected Tool
64 Well-Architected Tool re:Invent 2018Ͱ৽αʔϏεͱͯ͠ൃද • Well-Architected Frameworkʹجͮ͘ϨϏϡʔΛηϧϑαʔϏεͰ࣮ࢪͰ͖Δ πʔϧ •
ݱ࣌ʢ20199݄ʣͰӳޠͷΈ
65 ϗϫΠτϖʔύʔ General Design PracticesʢઃܭͷҰൠݪଇʣͱ The Review ProcessʢϨϏϡʔϓϩηεɺޙड़ʣಛʹॏཁ
66 ຊޠԽʹ͍ͭͯ ݱ࣌ͰW-A ToolຊޠԽͷ༧ఆͳͲެ։͞Ε͓ͯΓ·ͤΜ ʮAWS ΫϥυαʔϏε׆༻ࢿྉूʯͰ࣭ΛຊޠԽͨ͠ࢿྉ͕ެ։ AWS ΫϥυαʔϏε׆༻ࢿྉू https://aws.amazon.com/jp/aws-jp-introduction/ AWS
Well-Architected Framework ώΞϦϯάγʔτʢຊޠ൛ʣ https://d1.awsstatic.com/webinars/jp/pdf/services/Well- Architected%E3%83%92%E3%82%A2%E3%83%AA%E3%83%B3%E3%82%B0%E3%82%B7%E3%83%BC%E 3%83%88%E6%97%A5%E6%9C%AC%E8%AA%9E%E7%89%88.77c25d2afd0a69894be16b95aae6a4230 11f5a1f.xlsx ຊޠͷϗϫΠτϖʔύʔ·ͩ࠷৽Խ͞Ε͍ͯ·ͤΜʢ20186݄൛ʣ https://d1.awsstatic.com/International/ja_JP/Whitepapers/AWS_Well- Architected_Framework_2018_JA_final.pdf ࠷৽ͷӳޠ൛20197݄൛
67 Excelόʔδϣϯ
68 Demo
69 ϚωʔδϝϯτίϯιʔϧϩάΠϯ • όʔδχΞ෦ɺΦϋΠΦɺΦϨΰϯɺΞΠϧϥϯυϦʔδϣϯͰར༻Ͱ͖·͢ • ౦ژϦʔδϣϯͷϫʔΫϩʔυΛධՁͰ͖·͢ʢධՁʹ͋ͨΓW-A ToolϦιʔεʹΞΫηε͠·ͤΜʣ
70 ϫʔΫϩʔυͷఆٛ
71 ϨϏϡʔ
72 ϨϏϡʔ “Question does not apply to this workload” ϫʔΫϩʔυʹద༻Ͱ͖ͳ͍࣭ΛεΩοϓ͢
Δͱ͖ʹνΣοΫ ྫʣʮAWSαʔϏεͷϓϩάϥϜʹΑΔΞΫη εΛͲͷΑ͏ʹ੍ޚ͍ͯ͠·͔͢ʁʯˠϓϩά ϥϜʹΑΔ੍ޚΛ͍ͯ͠ͳ͍ “Notes - optional” ิࣄ߲Λهࡌ ྫʣʮRPO/RTOʹؔ͢ΔཁٻϨϕϧ͕͍ͨ Ίɺ୯Ұোͷഉআ༩ʯͷΑ͏ʹɺϕε τϓϥεςΟεʹԊ͏ඞཁ͕ແ͍ཧ༝ͳͲΛهࡌ
73 ϨϏϡʔ ֤બࢶͷղઆ ʢબࢶͷҙຯվળ͢ΔͨΊʹ ԿΛ͢Ε͍͍͔Θ͔Βͳ͍ͱ͖ʹࢀরʣ
74 ϨϏϡʔ ϦεΫͷ֓ཁ վળ׆ಈͷεςʔλε
75 ϨϏϡʔ Ͳͷபʹؔ͢ΔվળΛ༏ઌ͢Δ͔ ʢ͜ͷԼͷվળ߲ͷදࣔॱʹӨڹ͢Δʣ վળ͖͢ࣄ߲ͱվળͷͨΊͷࢀߟใ
76 ϨϏϡʔ
77 ϚΠϧετʔϯͷอଘ ݱ࣌ͷճঢ়گΛϚΠϧετʔϯͱͯ͠อଘՄೳ
78 վળͱϨϏϡʔΛܧଓ ͋Δఔվળ׆ಈ͕࣮ࢪͰ͖ͨΒɺ ࠶ϨϏϡʔΛ࣮ࢪͯ͠ͲͷఔϦεΫΛ؇Ͱ͖͔ͨ֬ೝ ϚΠϧετʔϯ࡞࣌ͷճΛࢀরՄೳ ܧଓతͳվળʹΑΓɺϦεΫΛݮ
79 վળͱϨϏϡʔΛܧଓ ෳͷϫʔΫϩʔυʹର͢ΔධՁΛ1Χॴʹू ʢͲͷϫʔΫϩʔυ͔Β༏ઌͯ͠վળ͢Δ͖͔Λஅʣ
ैདྷͷExcelܗࣜͱͷҧ͍ Excelܗࣜ • ϫʔΫϩʔυ(γεςϜ)ຖʹϑΝΠϧ͕ඞཁ ◦ γʔτ͕ଟ͘ͳΔͱϑΝΠϧࣗମ͕ॏ͘ͳΔ • ϑΝΠϧͷཧࣗମΛݕ౼͕ඞཁ • ਐḿཧͰ͖ͳ͍ʢ͍͠ʣ
• ϚωδϝϯτίϯιʔϧʹΞΫηεͰ͖ͳͯ͘ධՁͰ͖Δ Well Architected Tool • ෳͷϫʔΫϩʔυΛҰݩతʹཧͰ͖Δ • ϦεΫͷ͋Δ߲༏ઌͷߴ͍ͷΛ֬ೝͰ͖Δ • ϚΠϧετʔϯΛॻ͘͜ͱͰܧଓతʹධՁɾվળͰ͖Δ 80
81 ·ͱΊ
82 Well-Architected Framework • ϕετϓϥΫςΟεʹଇ͍ͬͯΔ͔Λ֬ೝͰ͖ΔϕετϓϥΫςΟεू • ࣭Ұ؏ͯ͠ઃܭͷجຊݪଇʹଇ͍ͬͯΔ͔Λ֬ೝ͢Δͷʹͳ͍ͬͯΔ • શͯͷϕετϓϥΫςΟεʹରԠ͢Δඞཁͳ͍ •
༏ઌॱҐରԠͷཁෆཁϏδωεڥεςʔΫϗϧμʔͷཁٻʹΑΓҟͳΔ ʢཁ݅༏ઌॱҐΛࣗͨͪͰܾΊΔʣ • Well-Archtected Framework ToolΛͬͯϢʔβࣗͰΞηεϝϯτ࣮ࢪ • ఆظతʹϨϏϡʔͱվળΛ܁Γฦͯ͠Ϋϥυ࠷దԽΛਐΊΔ
83