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?

feita há um ano235 visualizações
1 Resposta
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
ESPECIALISTA
respondido há um ano
  • 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?

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas