Does S3 Object Replication trigger ObjectCreated event?

0

Does S3 trigger ObjectCreated event on destination buckets after replication is succeeded?

Checked the event notification documentation and quickly skimmed through the replication documentation but I found nothing explicitly stated

Saw this question with a similar inquiry which suggests that it does, but I want to be sure

질문됨 2년 전1725회 조회
1개 답변
1
수락된 답변

Yes there will be an ObjectCreated:Put event generated. Here is an example of the event created from the destination bucket when an object is replicated to it:

{
  "Records": [
    {
      "eventVersion": "2.1",
      "eventSource": "aws:s3",
      "awsRegion": "us-east-1",
      "eventTime": "2022-10-26T14:07:48.018Z",
      "eventName": "ObjectCreated:Put",
      "userIdentity": {
        "principalId": "AWS:xxxxxxxxxxxxxxxxxxx:xxxxxxxxxxxxxxxx"
      },
      "requestParameters": {
        "sourceIPAddress": "x.x.x.x"
      },
      "responseElements": {
        "x-amz-request-id": "xxxxxxxxxxxxxxxxxx",
        "x-amz-id-2": "xxxxxxxxxxxxxxxxxxxxxxxxxx"
      },
      "s3": {
        "s3SchemaVersion": "1.0",
        "configurationId": "test",
        "bucket": {
          "name": "dstBucket",
          "ownerIdentity": {
            "principalId": "xxxxxxxxxxxxxx"
          },
          "arn": "arn:aws:s3:::dstBucket"
        },
        "object": {
          "key": "FILE.JPG",
          "size": 79896,
          "eTag": "xxxxxxxxxxxxxxxxxxxx",
          "versionId": "xxxxxxxxxxxxxxxxx",
          "sequencer": "xxxxxxxxxxxxxxxxx"
        }
      }
    }
  ]
}
profile pictureAWS
전문가
Matt-B
답변함 2년 전

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

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

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

관련 콘텐츠