$30 off During Our Annual Pro Sale. View Details »
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.2k
Amazon EventBridgeを使って簡単なAWS環境の監視システムを構築する #devio2022
Developers IO 2022のビデオセッションで利用した資料になります
ynishimura
July 21, 2022
Tweet
Share
More Decks by ynishimura
See All by ynishimura
React + Tauriでデスクトップアプリ開発に入門してみた
ynishimura0922
0
220
Amazon EventBridgeでできることをまとめてみた #devio2021
ynishimura0922
0
11k
Other Decks in Technology
See All in Technology
Oracle Database Release and Support Timelines 2024/12/11
wmo6hash
0
180
A/Aテストにおけるサンプルサイズ/japanr2024
nikkei_engineer_recruiting
1
620
つくってあそぼ! ユビキタス言語作文の紹介
ndadayo
1
150
ミスが許されない領域にAIを溶け込ませる プロダクトマネジメントの裏側
t01062sy
8
8.5k
お悩みハンドブック紹介資料
grafferhandbook
0
1.5k
Replit Agent
kawaguti
PRO
2
200
2000年てづくりキーボードの旅
tagomoris
1
170
TimeTreeが経た3つの転換点 ー プロダクト成長過程でその時、その瞬間、何を考えてたか
ysmtysts
1
3.7k
WED Company Deck for Engineer
wed
2
3.7k
2024 眼科AIコンテスト手法解説スライド 第5回日本眼科AI学会総会
minamikoyasuganka
0
120
開発者向けツールを魔改造してセキュリティ診断ツールを作っている話 - 第1回 セキュリティ若手の会 LT
pizzacat83
0
400
Oracle Base Database Service:サービス概要のご紹介
oracle4engineer
PRO
0
15k
Featured
See All Featured
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
6
490
Imperfection Machines: The Place of Print at Facebook
scottboms
266
13k
Fantastic passwords and where to find them - at NoRuKo
philnash
50
2.9k
Optimizing for Happiness
mojombo
376
70k
The Cost Of JavaScript in 2023
addyosmani
45
6.9k
Scaling GitHub
holman
458
140k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
10
790
Six Lessons from altMBA
skipperchong
27
3.5k
[RailsConf 2023] Rails as a piece of cake
palkan
53
5k
Optimising Largest Contentful Paint
csswizardry
33
3k
The Art of Programming - Codeland 2020
erikaheidi
53
13k
Code Reviewing Like a Champion
maltzj
520
39k
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