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.3k
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
320
Amazon EventBridgeでできることをまとめてみた #devio2021
ynishimura0922
0
11k
Other Decks in Technology
See All in Technology
株式会社ログラス − エンジニア向け会社説明資料 / Loglass Comapany Deck for Engineer
loglass2019
3
32k
ハイテク休憩
sat
PRO
2
170
10個のフィルタをAXI4-Streamでつなげてみた
marsee101
0
180
能動的ドメイン名ライフサイクル管理のすゝめ / Practice on Active Domain Name Lifecycle Management
nttcom
0
120
NW-JAWS #14 re:Invent 2024(予選落ち含)で 発表された推しアップデートについて
nagisa53
0
270
バクラクのドキュメント解析技術と実データにおける課題 / layerx-ccc-winter-2024
shimacos
2
1.1k
APIとはなにか
mikanichinose
0
110
re:Invent をおうちで楽しんでみた ~CloudWatch のオブザーバビリティ機能がスゴい!/ Enjoyed AWS re:Invent from Home and CloudWatch Observability Feature is Amazing!
yuj1osm
0
130
Work as an App Engineer
lycorp_recruit_jp
0
310
非機能品質を作り込むための実践アーキテクチャ
knih
5
1.6k
マルチプロダクト開発の現場でAWS Security Hubを1年以上運用して得た教訓
muziyoshiz
3
2.5k
LINEヤフーのフロントエンド組織・体制の紹介【24年12月】
lycorp_recruit_jp
0
540
Featured
See All Featured
Designing Experiences People Love
moore
138
23k
How To Stay Up To Date on Web Technology
chriscoyier
789
250k
BBQ
matthewcrist
85
9.4k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
10
810
VelocityConf: Rendering Performance Case Studies
addyosmani
326
24k
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
330
21k
Optimizing for Happiness
mojombo
376
70k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
665
120k
We Have a Design System, Now What?
morganepeng
51
7.3k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
Building an army of robots
kneath
302
44k
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