How to set up a static IP address
Written by
Scenario description
You need to set up a static IP address for a function or Serverless.
Solution
Assigning a static IP address to a cloud function is not supported yet. The function can execute on resources with different addresses each time, so you cannot assign a specific address to it.
As an alternative solution, you can use Compute Cloud. Create in it a VM instance with a static IP address, install the runtime environment for your programming language, and start executing the function code in it. We provide more details here and there.
Note
You can also use the API gateway to call the function via a custom domain.
Read more in our documentation: