部署后 AWS CloudTrail 未记录 CloudFront 分配 ID

AWS CloudTrail not logging CloudFront distribution ID after deployment

我创建了一个跟踪记录 AWS 中发生的所有事件, 但是在部署成功后跟踪没有记录 CloudFront 分配的 ID。

这是创建分发时记录的输出跟踪片段。

 (
    [EventId] => a6bd-8671102fd188
    [Username] => 7857RFR
    [EventTime] => 1534501513
    [CloudTrailEvent] => {}
    [EventName] => CreateDistribution
    [EventSource] => cloudfront.amazonaws.com
    [Resources] => Array
                    (
                    )

 )

在上面的响应中,为 cloudFront api 调用 CreateDistribution 记录的事件,但资源数组为空,而且部署成功后,cloudTrail 也没有为分发 ID 记录新事件。

任何建议将不胜感激。

1> 根据 CloudTrail 事件 "A list of resources accessed in the event. The field can contain the following information." 中 "resources" 的 definition 因此,当您创建发行版时,您并不是 "accessing" 刚刚创建的发行版。您应该在 "responseElements" 部分中查找分发 ID。

2> 您希望在创建分配后 CloudTrail 中出现什么事件?