How to create a functions namespace
Reviewed on 20 December 2021 • Published on 26 May 2021
This page shows you how to create your first functions namespace. Namespaces allow you to group your functions and share environment variables between them.
Requirements:
- You have an account and are logged into the Scaleway console
Click Functions in the Serverless section of the side menu. The functions page displays.
Click Create a namespace. The functions namespace creation wizard displays.
Complete the following steps in the wizard:
- Enter a name and optionally a description for your namespace. The name must only contain alphanumeric characters.
- Choose a region, which is the geographical location in which your namespace will be deployed.
- Enter any environment variables required for your namespace. Environment variables configured in a namespace will be available in all functions/apps within the same namespace. For each environment variable, click +Add and enter the key/value pair.
- Set 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.
- Verify the estimated cost.
Click Create a namespace to finish.
Your namespace is now created and you are taken to its Functions tab.
See Also