Connect Supabase storage to ittybit
This guide shows you how to connect your Supabase Storage bucket to ittybit using connections, and trigger automations when new files are uploaded.
1. Get S3 credentials from Supabase
First, ensure your storage bucket exists.
Using SQL (recommended):
Get credentials:
- Go to Settings → API in Supabase.
- Copy the S3 Access Keys (access key ID and secret access key).
- Note the S3 endpoint for your region.
2. Create a connection in ittybit
Save the credentials as a connection via the webapp or the API:
3. Trigger automations on upload
Create a database trigger to run your ittybit automation on each new upload:
4. Trigger automations via API
You can also trigger an automation run directly via the API:
5. Push outputs back to Supabase
Use the destination prop on tasks or the upload task kind in runs to push processed files back to your Supabase bucket using the connection you created:
See Push output files to your own storage for more details on using connections with tasks and runs.