HomeServerlessFunctionsHow to
Create a Functions namespace
Update content

How to create a functions namespace

Reviewed on 04 July 2023Published on 26 May 2021

This page shows you how to create your a functions namespace using the Scaleway console.

Namespaces allow you to group your functions and share environment variables, secrets and tokens between them.

Security & Identity (IAM):

You may need certain IAM permissions to carry out some actions described on this page. This means:

  • you are the Owner of the Scaleway Organization in which the actions will be carried out, or
  • you are an IAM user of the Organization, with a policy granting you the necessary permission sets
  1. Click Functions in the Serverless section of the side menu. The functions page displays.

  2. Click + Create namespace. If you have no existing Serverless Functions resources in your current Project, click Create a function. The functions namespace creation wizard displays.

  3. Complete the following steps in the wizard:

    • Enter a name or use the automatically generated one. The name can only contain lowercase alphanumeric characters and dashes.
    • Enter a description (optional).
    • Choose a region, which is the geographical location in which your namespace will be deployed.
    • Define any environment variables you want to inject into your function. For each environment variable, click + Add variable and enter the key/value pair.
    • Set your secret environment variables (optional). Secrets are environment variables which are injected into your function and stored securely, but not displayed in the console after initial validation. Add a key and a value.
  4. Click Create namespace only to finish, or click Create namespace and add a function if you want to create a function next.

See Also