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.7k
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
2k
Amazon EventBridgeでできることをまとめてみた #devio2021
ynishimura0922
0
12k
Other Decks in Technology
See All in Technology
AIドリブンのソフトウェア開発 - うまいやり方とまずいやり方
okdt
PRO
9
550
VPC Latticeのサービスエンドポイント機能を使用した複数VPCアクセス
duelist2020jp
0
160
生成AI利用プログラミング:誰でもプログラムが書けると 世の中どうなる?/opencampus202508
okana2ki
0
190
フルカイテン株式会社 エンジニア向け採用資料
fullkaiten
0
8.6k
Yahoo!広告ビジネス基盤におけるバックエンド開発
lycorptech_jp
PRO
1
250
2025新卒研修・Webアプリケーションセキュリティ #弁護士ドットコム
bengo4com
3
10k
Product Management Conference -AI時代に進化するPdM-
kojima111
0
200
Go で言うところのアレは TypeScript で言うとコレ / Kyoto.なんか #7
susisu
1
180
ソフトウェア エンジニアとしての 姿勢と心構え
recruitengineers
PRO
1
120
KiroでGameDay開催してみよう(準備編)
yuuuuuuu168
1
120
Observability for LLM Application lifecycle
ivry_presentationmaterials
1
230
そのコンポーネント、サーバー?クライアント?App Router開発のモヤモヤを可視化する補助輪
makotot
3
270
Featured
See All Featured
Thoughts on Productivity
jonyablonski
69
4.8k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
131
19k
GitHub's CSS Performance
jonrohan
1031
460k
Testing 201, or: Great Expectations
jmmastey
45
7.6k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
48
9.6k
Mobile First: as difficult as doing things right
swwweet
223
9.9k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Optimising Largest Contentful Paint
csswizardry
37
3.4k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
183
54k
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