Menu

Run code when a file is uploaded, without AWS Lambda: Cloud Run, Cloudflare R2, Fly.io Tigris and Railway buckets
📰

Run code when a file is uploaded, without AWS Lambda: Cloud Run, Cloudflare R2, Fly.io Tigris and Railway buckets

DEV Community: cloud·Hüseyin Poyraz Küçükarslan·about 14 hours ago
#QM1Pnr9s
#devtocloud#devto#dev#gregale#bucket
Long article (1210 words) — no AI summary yet.
Reading 0:00
15s threshold

Originally published on gregale.dev . I build Gregale, so read this as a vendor's page. Competitor details come from each vendor's own docs, linked in the post. This post was written with AI assistance.

On Gregale, a few lines in gregale.yaml make your app run every time a file lands in a bucket: no Lambda, no queue and no IAM policy to set up. Add triggers to the bucket entry, deploy, and each matching upload sends your app one POST / with an S3-style event. Your app sleeps until a file arrives, wakes to process it, and parks again. Bucket triggers are generally available on the Hobby, Pro and Scale plans.

Add a trigger

# gregale.yaml buckets : - bucket : uploads create : true # create the bucket on the first deploy if it doesn't exist permission : read_write triggers : - id : new-image # stable name; renaming it replaces the rule prefix : incoming/ # optional suffix : .png # optional

Enter fullscreen mode

Exit fullscreen mode

gregale deploy

Enter fullscreen mode

Exit fullscreen mode

On each deploy…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.