Created Eventbridge + Lambda for S3 events, but the events are missing

0

Hi,

I'm creating a bucket with eventBridgeEnable = true, custom event bus and a simple rule like this

{
  "detail-type": ["Object Created", "Object Tags Added"],
  "source": ["aws.s3"],
  "detail": {
    "bucket": {
      "name": ["etl-glue-dev-1kq3vvnhpcn8j"]
    },
    "object": {
      "size": [{
        "numeric": [">", 30]
      }],
      "key": [{
        "prefix": "src/"
      }]
    }
  }
}

The target is Lambda with DLQ. Stack deployed and all resources and permissions set up correctly. But no events arrive from the bucket, when I upload objects.

  1. The doc here says

Many AWS services generate events that EventBridge receives. When an AWS service in your account emits an event, it goes to your account’s default event bus Does it mean I need to use default event bus with S3 events?

  1. Furthermore, its says

To record events with a detail-type value of AWS API Call via CloudTrail, a CloudTrail trail with logging enabled is required.

Does it mean cloudtrail must be enabled on S3 buckets to make above rule work?

질문됨 일 년 전1595회 조회
1개 답변
0

All AWS services send events to the default bus. You can't use a custom bus for these events.

S3a sends notifications directly to EventBridge, so you do not need to enable CloudTrail (although it is a best practices to have CloudTrail enabled in all regions).

profile pictureAWS
전문가
Uri
답변함 일 년 전

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

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

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

관련 콘텐츠