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

asked a year ago1637 views
1 Answer
1
Accepted Answer

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
EXPERT
Matt-B
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions