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?

asked a year ago221 views
1 Answer
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
EXPERT
answered a year ago
  • 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?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions