modal.CloudBucketMount

Mounts a cloud bucket to your container. Currently supports AWS S3 buckets.

S3 buckets are mounted using AWS S3 Mountpoint. S3 mounts are optimized for reading large files sequentially. It does not support every file operation; consult the AWS S3 Mountpoint documentation for more information.

AWS S3 Usage

Cloudflare R2 Usage

Cloudflare R2 is S3-compatible so its setup looks very similar to S3. But additionally the bucket_endpoint_url argument must be passed.

Google GCS Usage

Google Cloud Storage (GCS) is S3-compatible. GCS Buckets also require a secret with Google-specific key names (see below) populated with a HMAC key.