我设置了一个 SNS 通知,以便在 IAM 政策发生变化时向我发送电子邮件。发生更改时,CloudTrail 会向 CloudWatch 发送日志,触发附加到 SNS 主题的警报。此链接中的更多详细信息。
这是我通过邮件收到的示例:
Alarm Details:
- Name: PolicyAlarm
- Description: This alarm is to monitor IAM Changes
- State Change: INSUFFICIENT_DATA -> ALARM
- Reason for State Change: Threshold Crossed: 1 datapoint [1.0 (31/08/17 09:15:00)] was greater than or equal to the threshold (1.0).
- Timestamp: Thursday 31 August, 2017 09:20:39 UTC
- AWS Account: 00011100000
Threshold:
- The alarm is in the ALARM state when the metric is GreaterThanOrEqualToThreshold 1.0 for 300 seconds.
这里唯一相关的信息是AWS Account ID
. 有没有办法也包括变化?谁制作的,何时何地?或者可能从 cloudwatch 日志中发送少量信息,例如"eventName"
?