Storage (beta)
LeafCloud Storage speaks the Amazon S3 API. Use it for app uploads, backups, build artifacts and datasets, with the AWS CLI, rclone, restic or any S3 SDK.
Your requests are served through our gateway in Bengaluru. The objects themselves are kept with an infrastructure provider we use, and may be stored outside India.
Get access
Section titled “Get access”Storage is off for most accounts. Sign up, then email
admin@leafcloud.in to ask for it. We review requests by hand
and enable storage for your account. Until then, leaf storage commands and the endpoint answer as if the bucket
does not exist.
Endpoint and region
Section titled “Endpoint and region”| Setting | Value |
|---|---|
| Endpoint | https://s3.leafcloud.app |
| Region | in |
| Path style | https://s3.leafcloud.app/<bucket>/<key> |
| Virtual-hosted style | https://<bucket>.s3.leafcloud.app/<key> |
Use the region in. Requests are signed with AWS Signature Version 4 over HTTPS. leaf storage endpoint prints the
endpoint and ready-made client snippets at any time.
Create a bucket and an access key
Section titled “Create a bucket and an access key”In the dashboard, open Storage. Create a bucket under Buckets, then create a key under Keys. The secret is shown once; copy it then.
The same from the CLI:
leaf loginleaf storage buckets create photos --mode privateleaf storage keys create --name uploads --permission read_write--permission is read or read_write. Add --bucket photos to limit a key to one bucket; leave it out for a key
that works on every bucket in the account. The command prints the secret once, and it cannot be shown again. Revoke a
key with leaf storage keys revoke <id> and create a new one if you lose the secret.
Use the AWS CLI
Section titled “Use the AWS CLI”export AWS_ACCESS_KEY_ID=LCKXXXXXXXXXXXXXXXXXexport AWS_SECRET_ACCESS_KEY='your-secret-key'export AWS_DEFAULT_REGION=in
aws --endpoint-url https://s3.leafcloud.app s3 cp ./report.pdf s3://photos/report.pdfaws --endpoint-url https://s3.leafcloud.app s3 ls s3://photos/Both addressing styles work. The examples above use path style; add
aws configure set default.s3.addressing_style path to make it the default.
Limits
Section titled “Limits”| Limit | Default per account | What happens at the limit |
|---|---|---|
| Stored data | 10 GB, including every old version | New writes are refused |
| Objects | 1,000,000, with every version counting | New uploads are refused |
| Buckets | 100 | New buckets are refused |
| Downloads | 500 GB per UTC calendar month | Downloads are slowed until the month resets, not blocked |
GB means decimal gigabytes: 500 GB is 500,000,000,000 bytes. The dashboard and leaf storage usage show all four
limits, with warnings at 80% and 100%. Need more? Email
admin@leafcloud.in and we can raise a limit.
Things to know in the beta
Section titled “Things to know in the beta”- Storage is free while the beta runs. There is no trial, so access does not expire, nothing becomes read-only and we do not delete your data for being unpaid.
- Keep your own copy of anything you cannot lose. Deletes and overwrites take effect at once.
- Buckets are private by default. A public bucket serves its objects by URL, so use one only for files that are meant to be public.
- Features and limits can change while the beta runs. Ask us if you need something that is not documented here.