How do I get events about resources other than EC2 using CloudTrailClient with SDK for java?

0

I need to get data about resource creation (by which user, when) and for that i am using CloudTrailClient. I tried looking up event by resource name attribute, and works fine for EC2 resource but not for EBS(empty array is returned). I tried other attributes like EventName: CreateVolume, yet I still get nothing. So how can I get CloudTrail event for any resource, preferably by its name?

已提问 1 年前235 查看次数
1 回答
0

CreateVolume cannot be confirmed for EBS volumes created at EC2 startup as described here.
CreateVolume can only be checked for EBS volumes created separately from EC2.
https://repost.aws/knowledge-center/find-ebs-user-config-cloudtrail

profile picture
专家
已回答 1 年前
  • I tested that on volume that I created separately, but it still didn't find anything

  • First of all, can I see the "CreateVolume" event I want to check from the management console?

  • Sure, but should I share here the event record? It contains my account and resource ids so I don't know if sharing it here would expose confidential information

  • No event record is required.
    I would like to check the relevant source code.
    Could you please share the code if possible?

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则