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
「EC2を止め忘れた夜にベッドから出たくない」を解決するAWS ChatBot
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Yuki_Kurono
February 16, 2022
Programming
950
0
Share
「EC2を止め忘れた夜にベッドから出たくない」を解決するAWS ChatBot
JAWS-UG 初心者支部#45
LT.5
Yuki_Kurono
February 16, 2022
More Decks by Yuki_Kurono
See All by Yuki_Kurono
Terraform(IaC)と実環境の乖離どうしていますか?
yuki_kurono
0
12
今年のre:inventから学ぶこと
yuki_kurono
0
94
re_invent 2023事前勉強会
yuki_kurono
0
92
CloudFormationの運用が 辛くならない方法を本気で考えてみた
yuki_kurono
0
300
CloudFormationで登場したForEachをちゃんと理解してみる
yuki_kurono
0
830
Turnstileのウィジェット モードとは何者か
yuki_kurono
0
660
CodeGuru Security ってなんだ?
yuki_kurono
0
1.2k
えるしってるか CloudFrontはWAFがあっても カスタムエラーレスポンスを返せる
yuki_kurono
0
430
Cloudflare初心者がIaCから基本構成を学んでみた
yuki_kurono
1
610
Other Decks in Programming
See All in Programming
AIと共に生きる技術選定 2026
sgash708
0
100
2026_04_15_量子計算をパズルとして解く
hideakitakechi
0
110
From Formal Specification to Property Based Test
ohbarye
0
180
実用!Hono RPC2026
yodaka
2
250
瑠璃の宝石に学ぶ技術の声の聴き方 / 【劇場版】アニメから得た学びを発表会2026 #エンジニアニメ
mazrean
0
270
Offline should be the norm: building local-first apps with CRDTs & Kotlin Multiplatform
renaudmathieu
0
220
🦞OpenClaw works with AWS
licux
1
190
Claude Code × Gemini × Ebitengine ゲーム制作素人WebエンジニアがGoでゲームを作った話
webzawa
0
150
How We Benchmarked Quarkus: Patterns and anti-patterns
hollycummins
1
150
Liberating Ruby's Parser from Lexer Hacks
ydah
2
1.9k
Claude Codeをカスタムして自分だけのClaude Codeを作ろう
terisuke
0
140
一度始めたらやめられない開発効率向上術 / Findy あなたのdotfilesを教えて!
k0kubun
4
3k
Featured
See All Featured
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
420
How to train your dragon (web standard)
notwaldorf
97
6.6k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
370
Build your cross-platform service in a week with App Engine
jlugia
234
18k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
140
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
10k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.2k
Designing Experiences People Love
moore
143
24k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Speed Design
sergeychernyshev
33
1.6k
VelocityConf: Rendering Performance Case Studies
addyosmani
333
25k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
1.2k
Transcript
「EC2を止め忘れた夜にベッドから出たくない」 を解決するAWS ChatBot アイレット株式会社 黒野雄稀 JAWS-UG 初心者支部#45 2022/02/16
自己紹介 名前:黒野 雄稀 趣味:Cookie Clicker AWS歴:3年くらい 所属:アイレット株式会社
こんなことはないでしょうか?
AWS 社内検証環境 EC2 仕事してるときの僕
AWS 社内検証環境 EC2 仕事終わった後の僕
寝る前の僕
None
欲しい機能 ・ベッドから出ずに停止したい(寒いし) ・コンソール,CLIを使うためにPCを起動したくない
AWS Chatbot は、チャットチャネルでの AWS ワーク ロードのモニタリング、運用、トラブルシューティン グを簡単に行えるようにするインタラクティブなエー ジェントです。AWS Chatbot を使用すれば、アラート
の受信、コマンドの実行による診断情報の取得、AWS リソースの設定、ワークフローの開始を行うことがで きます。 https://aws.amazon.com/jp/chatbot/ 概要 AWS ChatBot
・Slack又はAmazon Chimeへのアラーム通知 主な機能(1) AWS Cloud VPC
・SlackからのAWS CLI実行 - @aws ec2 describe-instances -instance-ids i-xxxxxxxxxxx,i-xxxxxxx 主な機能(2) AWS
Cloud VPC
AWS ChatBotの素晴らしいところ
便利!! チームは AWS 環境で実行されているアプリ ケーションのインシデント、セキュリティ検 出結果、その他のアラートについて最新情報 を確認して、コラボレーションし、迅速に対 応できます。チームはコマンドを実行して AWS リソースを安全に設定し、インシデン
トを解決し、Slack チャネルからタスクを実 行できます。 https://aws.amazon.com/jp/chatbot/
簡単!! 数回クリックするだけで AWS 通知を受信し、 チャットチャネルから AWS Command Line Interface (CLI)
コマンドを安全で効率的に 実行できます。 https://aws.amazon.com/jp/chatbot/
無料!! AWS Chatbot に追加料金はかかりません。 また、最低料金や前払いの義務はありません。 https://aws.amazon.com/jp/chatbot/pricing/
AWS Cloud VPC 構成 - 毎日PM11に起動中のインスタンスを通知 - SlackからAWS CLIを実行 ①
② ③ ④
使ってみよう
Slackワークフロービルダー
起動中のインスタンスの通知
Slackワークフローの実行
インスタンスIDを入力
実行結果
困ったこと
TerraformがAWS ChatBot対応してない。。。
解決策 https://github.com/hashicorp/terraform-provider- awscc
セキュリティ
注意するところ ・IAMロールに付与する権限は最小に ・実行ログは取っておこう
今後
今後の期待 ・通知の部分をカスタマイズできるようにできたらな ・CLI出して欲しいな。。(チラッ
AWS ChatBotの今後にも期待です!
参考 ・https://aws.amazon.com/jp/chatbot/ AWS ChatBotドキュメント ・https://docs.aws.amazon.com/chatbot/latest/adminguide/chatbot-cli-commands.html Running AWS CLI commands from
Slack channels ・https://www.hashicorp.com/blog/announcing-terraform-aws-cloud-control-provider-tech-preview Announcing Terraform AWS Cloud Control Provider Tech Preview