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

preguntada hace 2 años1727 visualizaciones
1 Respuesta
1
Respuesta aceptada

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
EXPERTO
Matt-B
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas