Skip to content

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.

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.

SettingValue
Endpointhttps://s3.leafcloud.app
Regionin
Path stylehttps://s3.leafcloud.app/<bucket>/<key>
Virtual-hosted stylehttps://<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.

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:

TerminalTerminal windowsh
leaf login
leaf storage buckets create photos --mode private
leaf 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.

TerminalTerminal windowsh
export AWS_ACCESS_KEY_ID=LCKXXXXXXXXXXXXXXXXX
export 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.pdf
aws --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.

LimitDefault per accountWhat happens at the limit
Stored data10 GB, including every old versionNew writes are refused
Objects1,000,000, with every version countingNew uploads are refused
Buckets100New buckets are refused
Downloads500 GB per UTC calendar monthDownloads 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.

  • 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.