Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Cloud Functions
  • Comparison with other Yandex Cloud services
    • Overview
    • Function
    • Invoking a function
    • Asynchronous function invocation
    • Long-lived functions
    • Function termination notifications
    • Networking
    • Mounting external resources to a function file system
    • Builder
    • Dead Letter Queue
    • Function logs
    • Backups
    • Quotas and limits
  • Tools
  • Pricing policy
  • Access management
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  • FAQ

In this article:

  • Mounting buckets
  • Mounting an ephemeral disk
  • See also
  1. Concepts
  2. Mounting external resources to a function file system

Mounting external resources to a function file system

Written by
Yandex Cloud
Updated at March 27, 2025
  • Mounting buckets
  • Mounting an ephemeral disk
  • See also

You can mount buckets and one ephemeral disk to a Yandex Cloud Functions function. To avoid data access errors, all mount points for ephemeral disks and buckets must be unique.

Mounting bucketsMounting buckets

Mounting buckets allows you to access them through the file system interface. In the function version settings, you can specify one or more mount points. Use this path to access the directory in which the bucket is mounted: /function/storage/<mount_point>.

You can mount the whole bucket or a specific folder.

To mount a bucket, the service account needs the following roles:

  • storage.viewer to only read data from the bucket.
  • storage.uploader to read and write data from/to the bucket.

Mounting an ephemeral diskMounting an ephemeral disk

Note

This feature is in the Preview stage. To get access, contact tech support or your account manager.

To mount an ephemeral disk, you can specify a mount point. Use this path to access the directory in which the ephemeral disk is mounted: /function/storage/<mount_point>.

The ephemeral disk size is a multiple of 1 GB and is set in the range from 1 to 100 GB. The maximum size of the ephemeral disk at the Preview stage cannot exceed 100 GB.

An ephemeral disk of a given size is created when the function is called just before the user code is executed. It is formatted into the ext4 file system and mounted at the specified mount point.

The user code will have read-write access to the ephemeral disk throughout the function's lifetime.

If a function is called multiple times, there is a chance that its repeated calls will be processed by the same instance. In this case, the data remaining on the disk after the previous call can be accessed. This function behavior is not determinated, and you cannot rely on the data being saved between calls.

Note

When the function's lifecycle ends, the ephemeral disk is permanently deleted. Use this type of disk space only to save temporary state.

See alsoSee also

  • Mounting buckets to a function
  • Mounting an ephemeral disk to a function
  • Mounting buckets to a container
  • Mounting an ephemeral disk to a container

Was the article helpful?

Previous
Preloaded runtime environment
Next
Builder
© 2025 Direct Cursus Technology L.L.C.