Mounting a bucket to a function
Written by
Updated at May 2, 2024
Mounting buckets allows you to access them through the file system interface. In the function version settings, you can specify one or multiple mount points. The directory where the bucket is mounted will be accessible at the /function/storage/<mount_point>
path.
You can mount the entire bucket or a specific folder.
Roles required to mount a bucket
To mount a bucket, the service account needs the following roles:
storage.viewer
to only read data from the bucket.storage.uploader
to both read and write bucket data.