简体   繁体   English

部署后,AWS CloudTrail不记录CloudFront分配ID

[英]AWS CloudTrail not logging CloudFront distribution ID after deployment

I have created a trail to log all the events happens in AWS, But the trail not logging the ID of CloudFront distribution after deployment successfully. 我已经创建了一条记录所有在AWS中发生的事件的跟踪,但是在成功部署之后,该跟踪未记录CloudFront分发的ID。

Here is a snippet of output trail logged on create distribution. 这是在create distribution上登录的输出跟踪的摘要。

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

 )

In the above response, the event logged for cloudFront api call CreateDistribution but the resources array is empty and also after deployment successfully there is no new event logged by cloudTrail for distribution ID. 在以上响应中,为cloudFront api记录的事件调用CreateDistribution,但是资源数组为空,并且在成功部署之后,cloudTrail并没有记录新的事件以获取分发ID。

Any suggestion will be appreciated. 任何建议将不胜感激。

1> As per definition of "resources" in CloudTrail event "A list of resources accessed in the event. The field can contain the following information." 1>根据CloudTrail事件“事件中访问的资源列表。该字段可以包含以下信息”的“资源”的定义 So, when you create the distribution, you are not "accessing" the distribution as it's just created. 因此,在创建分发时,您不会像刚刚创建的那样“访问”分发。 You should look for the distribution id in the "responseElements" section. 您应该在“ responseElements”部分中查找分发ID。

2> What event you are expecting to appear in CloudTrail after the distribution has been created? 2>创建发行版后,您希望什么事件出现在CloudTrail中?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM