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?

질문됨 일 년 전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
전문가
답변함 일 년 전
  • 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?

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠