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 年前檢視次數 1724 次
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南