Skip to content

Bucket notifications

A bucket notification puts a message in one of your queues or topics whenever an object in a bucket is created or removed. Typical uses: process a file as soon as it is uploaded, keep an index in step with a bucket, or forward uploads to another system through a webhook.

Create a rule

In the console, open Object Storage and use the notifications button on the bucket's row. A rule has:

Field Meaning
Events created, removed, or both
Key prefix, key suffix optional: only objects whose key starts or ends with these, for example uploads/ and .jpg
Target a queue, or a topic with an optional routing key

With the API:

mutation {
  createBucketNotification(input: {
    bucket: "assets"                 # the short name, not the prefixed one
    events: [CREATED]
    keyPrefix: "uploads/"
    queue: "new-uploads"
  }) { id }
}

A bucket can have up to 10 rules. A new or deleted rule takes effect within about ten seconds. Deleting a bucket deletes its rules.

The message

The body follows the S3 event notification format, so existing S3 event handlers need little change:

{
  "Records": [{
    "eventVersion": "2.1",
    "eventSource": "rso:s3",
    "awsRegion": "bg-central-1",
    "eventTime": "2026-11-22T13:04:39.490Z",
    "eventName": "ObjectCreated:Put",
    "s3": {
      "s3SchemaVersion": "1.0",
      "configurationId": "<rule id>",
      "bucket": { "name": "assets", "fullName": "t3fa9c1d2-assets" },
      "object": {
        "key": "uploads/photo.jpg",
        "size": 48213,
        "eTag": "7f3d153acc6786644c2eba0554adfe06",
        "contentType": "image/jpeg",
        "sequencer": "1795352679490657256"
      }
    }
  }]
}
  • eventName is ObjectCreated:Put, ObjectCreated:CompleteMultipartUpload or ObjectRemoved:Delete. A removal carries the key and the sequencer only.
  • bucket.name is the name you chose; bucket.fullName is the one S3 clients use.
  • object.key is percent-encoded, as in S3.
  • The message attributes rso-event, rso-bucket and rso-rule repeat the event name, the bucket and the rule, so a consumer can route without parsing the body.
  • On a topic the routing key is the rule's, or object.created / object.removed.

What counts as an event

  • An overwrite is ObjectCreated, as in S3.
  • A multipart upload is one event, when it completes.
  • A move or rename is a removal and a creation.
  • A change of tags is not an event.
  • Objects that already existed when the rule was created are not announced.

Guarantees

At-least-once into your queue or topic.

  • Duplicates are rare but possible; each event has a stable message id, so a consumer can drop a repeat.
  • Order is not guaranteed between different keys. For one key, compare sequencer (as decimal strings of equal length) to tell which event is newer.
  • A notification is dropped and counted on the rule when its target queue or topic no longer exists, or when the message was refused repeatedly. The rule shows delivered, dropped and the last error.
  • A full target queue drops its oldest messages (queue limits).
  • What happens after the message is in your queue depends on how you read it: see delivery guarantees.

Permissions

Viewers can see a bucket's rules; managing them is a permission editors hold by default. Both can be granted for some buckets only.