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?

demandé il y a un an235 vues
1 réponse
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
répondu il y a un an
  • 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?

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions

Contenus pertinents