What is a Bucket?
A bucket is object storage that:- Stores files - Any file type, any size
- Configurable access - Set read, write, delete permissions
- Scales automatically - No capacity planning needed
- Works everywhere - Same interface locally and in production
Basic bucket definition
Bucket Configuration
Access Control
Grant services access to buckets:read- Download/read fileswrite- Upload/write filesdelete- Delete filesall- Shorthand for read, write, delete
Content Path (Static Files)
Deploy static files to a bucket:./build are uploaded to the bucket.
Using Buckets in Code
With Suga’s generated SDK:- Node.js
- Python
- Go
Suga Client Libraries
Learn how to access resources from your service code
Local Development
Duringsuga dev, buckets are emulated using the filesystem:
- View files in
.suga/buckets/{bucket-name}/ - Seed buckets by placing files there
- Test bucket operations without cloud access
Local Development
Learn how to develop buckets locally with Suga