CloudBucketMount

class

gworker_client.resources.CloudBucketMount

A cloud object-store bucket (S3 or GCS) mounted as a read-only (or read-write) filesystem path inside the task container. Uses FUSE under the hood; mount latency is higher than a local Volume.

Class

python
1class CloudBucketMount

Methods

from_s3

python
1from_s3(bucket: str, mount_path: str, key_prefix: str = '', secret: str | None = None, read_only: bool = True) -> CloudBucketMount

Mount an S3 bucket at mount_path. Pass a secret name to inject AWS credentials; omit to use the task container's IAM role. key_prefix scopes the mount to a subdirectory of the bucket.

from_gcs

python
1from_gcs(bucket: str, mount_path: str, key_prefix: str = '', secret: str | None = None, read_only: bool = True) -> CloudBucketMount

Mount a GCS bucket at mount_path. Pass a secret name containing the service-account JSON; omit to use workload identity.

← Back to docs