Skip to navigationSkip to main contentSkip to footerScaleway DocsAsk our AI
Ask our AI

How to create a function using the Scaleway console

This page shows you how to deploy a function using the Scaleway console.

Before you start

To complete the actions presented below, you must have:

How to create a function

  1. Click Functions in the Serverless section of the side menu. The functions page displays.

  2. Click the functions namespace in which you want to create your function.

  3. Click + Create function. The function creation wizard displays.

Function configuration

  1. Select a runtime for your function. For more information on runtimes configuration and lifecycle, refer to the dedicated documentation.

  2. Select a function code option:

    • Inline code editor to enter your own function code.

    • Deploy "Hello world" to deploy a basic function that will return "Hello world" when invoked. This option allows you to quickly test a deployment.

    • Upload a ZIP to import a packaged function.

  3. If you used the code editor, enter the handler of your function.

  4. Enter a name or use the automatically generated one. The name can only contain lowercase alphanumeric characters and dashes.

  5. Optionally, add a description and tags.

Function resources and scaling

  1. Select the resources to allocate to your function.

  2. Configure the scaling of your function.

    Tip

    Define a minimum of one instance or more to avoid cold starts.

Function advanced options

In the Advanced options section, set the following:

Function cost and validation

  1. Update the Number of requests and Average request duration fields to simulate the behavior of your function.

  2. Verify the estimated cost. Refer to the Serverless Functions pricing for more information on how billing works.

  3. Click Create function to finish.

Tip

There are different ways to deploy Serverless Functions. Refer to our detailed deployment information for more advanced options to deploy your functions.

Still need help?

Create a support ticket
No Results