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

gefragt vor 2 Jahren1729 Aufrufe
1 Antwort
1
Akzeptierte Antwort

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
EXPERTE
Matt-B
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen