Event sources of an event bus in AWS EventBridge

0

There's an event bus and rules created by someone who left the company. From the rules I cannot identify the event sources that emit the events to that event bus. But from the CloudWatch metrics, I can see there're still invocations to the rules. How can I identify the event sources? Thanks.

질문됨 6달 전190회 조회
1개 답변
2

Hi,

Content of an event will provide you this information:

{
  "version": "0",
  "id": "6a7e8feb-b491-4cf7-a9f1-bf3703467718",
  "detail-type": "EC2 Instance State-change Notification",
  "source": "aws.ec2",
  "account": "111122223333",
  "time": "2017-12-22T18:43:48Z",
  "region": "us-west-1",
  "resources": [
    "arn:aws:ec2:us-west-1:123456789012:instance/i-1234567890abcdef0"
  ],
  "detail": {
    "instance-id": "i-1234567890abcdef0",
    "state": "terminated"
  }
}

So, the field source will allow you to identify the originator of the even: ec2 in example above.

So, find a way to display such events (via a Lambda, etc.) and you will obtain the source.

Best,

Didier

profile pictureAWS
전문가
답변함 6달 전

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

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

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

관련 콘텐츠