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
Amazon EventBridgeを使って簡単なAWS環境の監視システムを構築する #dev...
Search
ynishimura
July 21, 2022
Technology
1
5.1k
Amazon EventBridgeを使って簡単なAWS環境の監視システムを構築する #devio2022
Developers IO 2022のビデオセッションで利用した資料になります
ynishimura
July 21, 2022
Tweet
Share
More Decks by ynishimura
See All by ynishimura
Amazon EventBridgeでできることをまとめてみた #devio2021
ynishimura0922
0
11k
Other Decks in Technology
See All in Technology
Envoy External AuthZとgRPC Extensionを利用した「頑張らない」Microservices認証認可基盤
andoshin11
0
150
スーパーマリオRPGのリメイク版の変更点からみるUX
nishiharatsubasa
1
130
CRTO/CRTL/OSEPの比較・勉強法とAV/EDRの検知実験
chayakonanaika
0
370
トレタO/X アーキテクチャ移行記 Next.js App Router化への道のり / TORETA TECH UPDATE 1
okunokentaro
2
580
タイミーのBraze活用 ~PUSH通知を活用したレコメンド~
ozeshun
2
120
RAGHack: Kickoff and RAG 101
pamelafox
0
210
エンジニア視点で見る、 組織で運用されるデザインシステムにするには
shunya078
1
190
EitherT_with_Future
aoiroaoino
0
510
RAGHack: Building RAG apps in Python
pamelafox
0
100
Dify - LINE Bot連携 考え方と実用テクニック
uezo
5
1.1k
FastlyとfalcoでNode.jsレスな Webサーバー構築 : IPTV版 ABEMAアプリインフラ刷新 / Building web server using Fastly and falco without Node.js for IPTV ABEMA app
nodaguti
0
240
FastConnect の冗長性
ocise
0
7.1k
Featured
See All Featured
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
22
580
Faster Mobile Websites
deanohume
304
30k
Creatively Recalculating Your Daily Design Routine
revolveconf
215
12k
What’s in a name? Adding method to the madness
productmarketing
PRO
21
3k
Atom: Resistance is Futile
akmur
261
25k
[RailsConf 2023] Rails as a piece of cake
palkan
44
4.6k
Practical Orchestrator
shlominoach
185
10k
A designer walks into a library…
pauljervisheath
201
24k
We Have a Design System, Now What?
morganepeng
48
7.1k
Statistics for Hackers
jakevdp
793
220k
Adopting Sorbet at Scale
ufuk
72
8.9k
Intergalactic Javascript Robots from Outer Space
tanoku
268
26k
Transcript
"84ࣄۀຊ෦ΦϖϨʔγϣϯ෦ଜ༞ೋ "NB[PO&WFOU#SJEHFΛͬͯ ؆୯ͳ"84ڥͷࢹγεςϜΛߏங͢Δ
ࣗݾհ ଜ༞ೋ "84ࣄۀຊ෦ΦϖϨʔγϣϯ෦ େࡕΦϑΟεࡏ੶ αʔόʔϨεڥߏங όοΫΤϯυ - 2022 APN
ALL AWS Certi fi cations Engineers - 2021 APN AWS Top Engineer/ APN ALL AWS Certi fi cations Engineer - 2020 APN AWS Top Engineers - 2019 APN AWS Top Engineers
"84ڥΛཧ͢Δͱ͖ͷΈ ɾ"84্ͰΤϥʔҟৗ͕͋ͬͨͱ͖௨͍ͨ͠ ɾෳͷΞΧϯτɺϦʔδϣϯΛࢹ͢Δͷ͕େม ɾࢹπʔϧͳΔ͘"84αʔϏεͰࡁ·͍ͤͨ ɾͳΔ͘؆୯ʹࢹ͍ͨ͠ ɾࢹπʔϧͷཧ࠷খʹ͍ͨ͠ EventBridgeͱAPI DestinationΛ͑ɺൺֱత؆୯ʹ ؆қͳࢹγεςϜ͕࡞Εͦ͏
࣍ "NB[PO&WFOU#SJEHFͱ "1*%FTUJOBUJPO "NB[PO&WFOU#SJEHFΛͬͨ"84ڥͷࢹγ εςϜ ࣮ࡍͷ&WFOU#SJEHFͷઃఆը໘ ·ͱΊ
Amazon EventBridgeͱ
"NB[PO&WFOU#SJEHFͱ l"84ɺطଘͷγεςϜɺ·ͨ4BB4ΞϓϦશମͰ ΠϕϯτۦಈܕΞϓϦέʔγϣϯΛେنʹߏங͢Δz ʰΠϕϯτʱΛ༻͍༷ͯʑͳΞϓϦέʔγϣϯΛ؆୯ʹ ଓͰ͖ΔΑ͏ʹ͢ΔϧʔςΟϯάαʔϏε https://aws.amazon.com/jp/eventbridge/
Πϝʔδਤ ಠࣗ"QQ 4BB4 "84αʔϏε Amazon EventBridge Πϕϯτ ϧʔϧ Πϕϯτιʔε
λʔήοτ ϧʔϧ ϧʔϧ 4BB4 "84αʔϏε ผ"84ڥ Πϕϯτόεʴϧʔϧ Πϕϯτ
"NB[PO&WFOU#SJEHFΛར༻ͨ͠ྫ ૄ݁߹ʹϚΠΫϩαʔϏεΛΈཱͯΔ αʔόʔϨεͳϚωʔδυαʔϏεͷͨΊ αʔό४උɾߏஙɾཧ ʢϚϧν";ɺ4-"ˋʣ ૄ݁߹ʹϚΠΫϩαʔϏεΛΈཱͯΔ
"NB[PO&WFOU#SJEHFͷػೳ εέδϡʔϧ࣮ߦػೳ Πϕϯτϧʔϧͷλʔήοτʹ)551ͷΤϯυϙΠϯτ͕ࢦఆՄೳ ΠϕϯτΛผϦʔδϣϯʹࣗಈͰϑΣΠϧΦʔόʔ͢Δػೳ ࡞ͨ͠ΠϕϯτύλʔϯʹҰக͢Δ͔ݕূ͢ΔαϯυϘοΫεػೳ ΞΧϯτؒɺϦʔδϣϯؒͷΠϕϯτసૹػೳ ΠϕϯτߏεΩʔϚΛݕɺཧ͢Δػೳ Πϕϯτه࠶ੜ͢Δػೳ
API Destination
"1*%FTUJOBUJPO ɾҙͷΤϯυϙΠϯτʹ )551ϦΫΤετΛૹ৴ ɾίʔυͷ࣮ෆཁ ɾηΩϡΞʹೝূใཧ ɾݺͼग़͠ϨʔτௐՄೳ https://aws.amazon.com/blogs/compute/using-api-destinations-with-amazon-eventbridge/ ਤͷҾ༻ݩ
"1*%FTUJOBUJPOͷར༻ྫ ྫɿ4MBDLͱͷ࿈ܞ ػೳΛΘͳ͍ͱ͖ɿ-BNCEBΛར༻
"1*%FTUJOBUJPOͷར༻ྫ ྫɿ4MBDLͱͷ࿈ܞ ஔ͖͑Δ͜ͱͰ࣮ෆཁɺηΩϡΞʹೝূใཧ
ͬͯΈͨϒϩάͷհ https://dev.classmethod.jp/articles/event-bridge-api- destinations-with-slack/
Amazon EventBridgeΛͬͨ AWSڥͷࢹγεςϜ
"NB[PO&WFOU#SJEHFΛͬͨ"84ڥͷࢹγεςϜ ࢹ͍ͨ͠ΠϕϯτΛू͠4MBDL௨
"NB[PO&WFOU#SJEHFΛͬͨ"84ڥͷࢹγεςϜ ࢹ͍ͨ͠ΠϕϯτΛू͠4MBDL௨
"NB[PO&WFOU#SJEHFΛͬͨ"84ڥͷࢹγεςϜ ࢹ͍ͨ͠ΠϕϯτΛू͠4MBDL௨
"NB[PO&WFOU#SJEHFΛͬͨ"84ڥͷࢹγεςϜ ࢹ͍ͨ͠ΠϕϯτΛू͠4MBDL௨
ϝϦοτ 4MBDL௨ػೳΛ"84αʔϏεʹ·͔ͤΔ͜ͱ͕Ͱ͖࣮͕ݮΔ $MPVE8BUDI"MBSN"NB[PO4/4ͷઃఆෆཁ ෳͷΞΧϯτ Ϧʔδϣϯͷࢹ͕༰қ ཧίετ͕͍ʢγεςϜόʔδϣϯΞοϓɺεέʔϧཧෆཁʣ ϥΠηϯεཧෆཁ άϩʔόϧΤϯυϙΠϯτͱ͍͏Մ༻ੑΛߴΊΔػೳ͕͋Δ ʑɺػೳՃ͞ΕΔ
σϝϦοτ $MPVE5SBJM"1*Ҏ֎ͷΠϕϯτʹରԠ͍ͯ͠ΔαʔϏε͕·ͩগ ͳ͘ɺࢹ͍ͨ͠Πϕϯτ͕ະରԠͷͱ͖-BNCEBͰ࡞ΓࠐΈ͕ ඞཁʹͳΔ "84ڥݶఆͷࢹ 4MBDL͔Β"84ڥΛૢ࡞͢Δ͜ͱ͕Ͱ͖ͳ͍ ෳࡶͳཁ݅ຬͨͤͳ͍Մೳੑ͕͋Δ https://docs.aws.amazon.com/ja_jp/eventbridge/latest/userguide/eb-service-event.html
࣮ࡍͷEventBridgeͷઃఆը໘
࣮ࡍͷ&WFOU#SJEHFͷઃఆը໘ ࢹରɿ4UFQ'VODUJPOTͷεςʔτϚγϯͷεςʔλε ཁ݅ɿΤϥʔ࣌ʹ4MBDL௨͍ͤͨ͞ લఏɿ ɹඞࣦͣഊ͢ΔεςʔτϚγϯΛ༻ҙ ɹ4MBDLଆͷઃఆ͍ྃͯ͠Δ
"NB[PO&WFOU#SJEHFͷઃఆ ϧʔϧ࡞ λʔήοτͷࢦఆ
ϧʔϧ࡞ ໊લΛઃఆ Πϕϯτόε ʮEFGBVMUʯΛ༻ ϧʔϧλΠϓʮΠϕϯτ ύλʔϯΛ࣋ͭϧʔϧʯ
ϧʔϧ࡞ ʮ"84ͷαʔϏεʯࢦఆ ʮ4UFQ'VODUJPOTʯΛબ ΠϕϯτλΠϓʮ4UFQ'VODUJPOT &YFDVUJPO4UBUVT$IBOHFʯΛબ ಛఆͷεςʔλεͰʮ'"*-&%ʯ ʮ5*.&%@065ʯΛબ
ϧʔϧ࡞ ʮ"84ͷαʔϏεʯࢦఆ ʮ4UFQ'VODUJPOTʯΛબ ΠϕϯτλΠϓʮ4UFQ'VODUJPOT &YFDVUJPO4UBUVT$IBOHFʯΛબ ಛఆͷεςʔλεͰʮ'"*-&%ʯ ʮ5*.&%@065ʯΛબ
λʔήοτͷࢦఆ ʮ&WFOU#SJEHF"1*ͷѼઌʯΛ બ ৽͍͠"1*ૹ৴ઌΛ࡞
λʔήοτͷࢦఆ "1*ૹ৴ઌΤϯυϙΠϯτ )551ϝιουʮ1045ʯΛબ https://slack.com/api/chat.postMessage
λʔήοτͷࢦఆ ʮ৽͍͠ଓΛ࡞ʯΛબ ଓ໊ೖྗ ૹ৴ઌλΠϓʮͦͷଞʯΛબ
λʔήοτͷࢦఆ ೝূλΠϓʮ"1*ΩʔʯΛબ "1*Ωʔ໊ɺΛೖྗ ৽͍͠ϩʔϧΛ࡞
λʔήοτͷࢦఆ ʮೖྗτϥϯεϑΥʔϚʔʯΛબ
λʔήοτͷࢦఆ ೖྗύε \lEFUBJMzEFUBJM^ 4MBDL௨ͷͨΊͷ࠷ݶͷϖΠϩʔυ { "channel":"νϟϯωϧID", "text":"ߘ͢Δϝοηʔδ" }
λʔήοτͷࢦఆ ςϯϓϨʔτ { "channel":"νϟϯωϧID", "text":<detail> }
௨༰ Πϕϯτใ͕௨ τϥϯεϑΥʔϚʔΛɹɹ ΧελϚΠζ͢Δ͜ͱͰݟ ͘͢͢Δ͜ͱՄೳ
ผϦʔδϣϯͷ&WFOU#SJEHFͷઃఆ
·ͱΊ "NB[PO&WFOU#SJEHFΛ͏͜ͱͰ؆୯ʹࢹγεςϜΛߏஙՄೳ ɾ"1*%FTUJOBUJPOΛར༻͢Δ͜ͱͰ࣮ͳ͠Ͱ4MBDL௨Մೳ ɾ$MPVE8BUDI"MBSN"NB[PO4/4ͷઃఆෆཁ ɾෳΞΧϯτɺෳϦʔδϣϯͷࢹՄೳ ɾϚωʔδυαʔϏεͳͷͰཧίετ͕͍ ɾϥΠηϯεཧෆཁ ɾະରԠͷΠϕϯτଟ͋͘ΔͨΊɺࢹ͍ͨ͠Πϕϯτʹ͍ͭͯཁ֬ೝ
None