Schedule logo
Cloudflare R2 logo
Discord logo

Workflow template

Report R2 bucket storage to Discord

Post a daily report of object counts and bytes in one selected R2 bucket, grouped by storage class.

How it works

Report R2 bucket storage to Discord

1 Trigger · 2 Actions
Schedule1 · Trigger

Daily storage report

Run automatically on the configured schedule.

Cloudflare R22 · Action

Read storage in the selected bucket

Count the objects and bytes in a selected bucket, grouped by storage class. Reads each page of object metadata.

Discord3 · Action

Post the storage report

Send rich content, files, a poll, or a reply to a channel.

Before activation

Set up your workflow

  1. Choose a single bucket

    In the storage-report action, select the bucket to measure. Use a connection with permission to list objects in that bucket.

  2. Set the reporting schedule

    Choose the interval and timezone. The report lists object count and bytes and groups storage by class.

  3. Verify the destination and totals

    Connect Discord, choose a test channel and allow the bot to send messages. Compare the first report with the contents of the same bucket, including an object of known size.

Explore connected apps