setting-up-cloudwatch-alarm-notifications

setting-up-cloudwatch-alarm-notifications

熱門

使用 SNS 主題和訂閱來設定 CloudWatch 警示的通知管道。每當設定警示通知時,一律使用此技能——它會建立加密的 SNS 主題、設定供 CloudWatch 存取的主題政策、設定電子郵件/SMS/Webhook 訂閱,並以適當的安全控制將警示連結至通知動作。

2184星標
207分支
更新於 2026/7/30
SKILL.md
readonlyread-only
name
setting-up-cloudwatch-alarm-notifications
description

Sets up notification channels for CloudWatch alarms using SNS topics and subscriptions. Always use this skill when configuring alarm notifications — it creates encrypted SNS topics, configures topic policies for CloudWatch access, sets up email/SMS/webhook subscriptions, and links alarms to notification actions with proper security controls.

version
1

設定 CloudWatch 警示通知

總覽

使用 Amazon SNS 主題和訂閱來設定 Amazon CloudWatch 警示通知管道的領域專業知識。涵蓋建立加密的 SNS 主題、設定電子郵件、SMS 和 Webhook 端點的訂閱、設定供 CloudWatch 存取的主題政策,以及將警示連結至通知動作。

設定警示通知

若要為 CloudWatch 警示設定通知管道,請完全依照程序操作。請參閱 CloudWatch 警示通知設定程序

疑難排解

未收到電子郵件通知

請確認電子郵件訂閱已確認。使用 aws sns list-subscriptions-by-topic 檢查訂閱狀態是否為「已確認」,而非「待確認」。

SMS 通知失敗

請確保電話號碼為 E.164 格式(例如 +12345678901),且您的 AWS 區域支援 SMS。

警示未觸發通知

使用 aws cloudwatch describe-alarms 驗證警示的 AlarmActions 中是否有正確的 SNS 主題 ARN,並確保 ActionsEnabled 設定為 true。