【发布时间】:2017-08-31 09:33:24
【问题描述】:
我设置了一个 SNS 通知,以便在 IAM 政策发生变化时向我发送电子邮件。发生更改时,CloudTrail 会向 CloudWatch 发送日志,触发附加到 SNS 主题的警报。此link 中的更多详细信息。
这是我通过邮件收到的示例:
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" ?
【问题讨论】:
-
评估 AWS Config。它会给你当前的配置。编写一个逻辑来确定更改。关于谁进行了更改,您需要查看 CloudTrail 日志。
标签: amazon-web-services amazon-iam amazon-sns amazon-cloudwatchlogs amazon-cloudtrail