How to set up a static IP address
Written by
Updated at December 17, 2025
How to set up a static IP address
Case description
You need to set up a static IP address for a function or Serverless Containers.
Solution
Assigning a static IP address to a cloud function is not supported yet. The function may run on resources with different addresses each time, so you cannot assign it a specific address.
As an alternative, you can use Yandex Compute Cloud. Create in it a VM instance with a static IP address, install the runtime environment for your programming language, and run the function code in it. For more information, see here and there.
Note
You can also use the API gateway to call the function via a custom domain.
Learn more in our guides: