Skip to content

Commit b1134d9

Browse files
committed
docs(srv): update functions do
1 parent caa0ad0 commit b1134d9

12 files changed

+73
-127
lines changed

menu/navigation.json

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3630,12 +3630,8 @@
36303630
{
36313631
"items": [
36323632
{
3633-
"label": "Create a Functions namespace",
3634-
"slug": "create-a-functions-namespace"
3635-
},
3636-
{
3637-
"label": "Manage a Functions namespace",
3638-
"slug": "manage-a-functions-namespace"
3633+
"label": "Create and manage Functions namespace",
3634+
"slug": "create-manage-functions-namespace"
36393635
},
36403636
{
36413637
"label": "Create a function",
@@ -3676,10 +3672,6 @@
36763672
{
36773673
"label": "Delete a function",
36783674
"slug": "delete-a-function"
3679-
},
3680-
{
3681-
"label": "Delete a Functions namespace",
3682-
"slug": "delete-a-functions-namespace"
36833675
}
36843676
],
36853677
"label": "How to",

serverless/functions/concepts.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ A handler is a routine/function/method that processes specific events. Upon invo
4949

5050
## Namespace
5151

52-
A namespace is a project that allows you to [group your functions](/serverless/functions/how-to/create-a-functions-namespace/). Functions in the same Namespace can share environment variables and access tokens, defined at the namespace level.
52+
A namespace is a project that allows you to [group your functions](/serverless/functions/how-to/create-manage-functions-namespace/). Functions in the same Namespace can share environment variables and access tokens, defined at the namespace level.
5353

5454
## NATS trigger
5555

serverless/functions/how-to/add-trigger-to-a-function.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ A trigger can be an HTTP request, a message from a queue or stream, a CRON sched
2424

2525
- A Scaleway account logged into the [console](https://console.scaleway.com)
2626
- [Owner](/identity-and-access-management/iam/concepts/#owner) status or [IAM permissions](/identity-and-access-management/iam/concepts/#permission) allowing you to perform actions in the intended Organization
27-
- Created a [functions namespace](/serverless/functions/how-to/create-a-functions-namespace/)
27+
- Created a [functions namespace](/serverless/functions/how-to/create-manage-functions-namespace/)
2828
- Created a [function](/serverless/functions/how-to/create-a-function/)
2929
- [Activated SQS](/serverless/messaging/how-to/get-started/#how-to-activate-sqs-or-sns)
3030
- [Created credentials](/serverless/messaging/how-to/create-credentials/) for SQS

serverless/functions/how-to/create-a-function.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This page shows you how to deploy a [function](/serverless/functions/concepts/#f
1919

2020
- A Scaleway account logged into the [console](https://console.scaleway.com)
2121
- [Owner](/identity-and-access-management/iam/concepts/#owner) status or [IAM permissions](/identity-and-access-management/iam/concepts/#permission) allowing you to perform actions in the intended Organization
22-
- A [functions namespace](/serverless/functions/how-to/create-a-functions-namespace/)
22+
- A [functions namespace](/serverless/functions/how-to/create-manage-functions-namespace/)
2323

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

serverless/functions/how-to/create-a-functions-namespace.mdx

Lines changed: 0 additions & 37 deletions
This file was deleted.
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
---
2+
meta:
3+
title: How to create, manage, and delete a Functions Namespace
4+
description: Step-by-step process for creating, managing, and deleting a Serverless Functions namespace in Scaleway.
5+
content:
6+
h1: How to create, manage, and delete a Functions Namespace
7+
paragraph: Step-by-step process for creating, managing, and deleting a Serverless Functions namespace in Scaleway.
8+
tags: functions namespace create manage delete environment variable secret
9+
dates:
10+
validation: 2024-11-14
11+
posted: 2021-05-26
12+
categories:
13+
- serverless
14+
---
15+
16+
This page shows you how to create, manage, and delete a Functions namespace using the Scaleway console.
17+
18+
[Namespaces](/serverless/functions/concepts/#namespace) allow you to group your [functions](/serverless/functions/concepts/#function) and share environment variables, secrets and tokens between them.
19+
20+
<Macro id="requirements" />
21+
22+
- A Scaleway account logged into the [console](https://console.scaleway.com)
23+
- [Owner](/identity-and-access-management/iam/concepts/#owner) status or [IAM permissions](/identity-and-access-management/iam/concepts/#permission) allowing you to perform actions in the intended Organization
24+
25+
## Creating a Serverless Functions namespace
26+
27+
1. Click **Functions** in the **Serverless** section of the side menu. The functions page displays.
28+
29+
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.
30+
31+
3. Complete the following steps in the wizard:
32+
- Enter a **name** or use the automatically generated one. The name can only contain lowercase alphanumeric characters and dashes.
33+
- Enter an optional **description**.
34+
- Choose a **region**, which is the geographical location in which your namespace will be deployed.
35+
- Click **+ Add advanced options** to define any **environment variables** you want to inject into your function. For each environment variable, click **+ Add variable** and enter the key/value pair.
36+
- Set optional secret environment variables. **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**.
37+
4. Click **Create namespace only** to finish, or click **Create namespace and add a function** if you want to [create a function](/serverless/functions/how-to/create-a-function/) next.
38+
39+
40+
## Managing a Serverless Functions namespace
41+
42+
1. Click **Functions** in the **Serverless** section of the side menu. The functions page displays.
43+
2. Click the functions namespace you want to manage.
44+
3. Click the **Namespace settings** tab. Information about the region, registry endpoint and description of your namespace display.
45+
4. Click **+ Generate token** to create an access token for this namespace.
46+
47+
<Message type="important">
48+
The token key will only be available for copy once. Make sure to store it securely before leaving the page.
49+
</Message>
50+
51+
5. Add any additional environment variables by clicking the <Icon name="edit" /> icon, **+ Add variable**, entering the key/value pair, and clicking <Icon name="validate"/>.
52+
6. Add any additional secrets by clicking the <Icon name="edit" /> icon, **+ Add secret**, entering the key/value pair, and clicking <Icon name="validate"/>.
53+
54+
## Deleting a Serverless Functions namespace
55+
56+
1. Click **Functions** in the **Serverless** section of the side menu. The functions page displays.
57+
58+
2. Click the <Icon name="more" /> icon next to the namespace you want to delete, and select **Delete** from the drop-down menu.
59+
60+
3. Type **DELETE** in the pop-up that asks you to confirm the action, then click **Delete namespace**.
61+
62+
<Message type="tip">
63+
You can also delete a namespace from the **Namespace settings** tab.
64+
</Message>

serverless/functions/how-to/delete-a-functions-namespace.mdx

Lines changed: 0 additions & 37 deletions
This file was deleted.

serverless/functions/how-to/manage-a-functions-namespace.mdx

Lines changed: 0 additions & 36 deletions
This file was deleted.

serverless/functions/how-to/package-function-dependencies-in-zip.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ This feature allows you to add your libraries or static files to your function.
2121

2222
- A Scaleway account logged into the [console](https://console.scaleway.com)
2323
- [Owner](/identity-and-access-management/iam/concepts/#owner) status or [IAM permissions](/identity-and-access-management/iam/concepts/#permission) allowing you to perform actions in the intended Organization
24-
- A [Functions namespace](/serverless/functions/how-to/create-a-functions-namespace/)
24+
- A [Functions namespace](/serverless/functions/how-to/create-manage-functions-namespace/)
2525
- installed [jq](https://jqlang.github.io/jq/download/)
2626

2727
## How to package a function into zip file

serverless/functions/how-to/secure-a-function.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This page explains how to secure your function.
1919

2020
- A Scaleway account logged into the [console](https://console.scaleway.com)
2121
- [Owner](/identity-and-access-management/iam/concepts/#owner) status or [IAM permissions](/identity-and-access-management/iam/concepts/#permission) allowing you to perform actions in the intended Organization
22-
- A [functions namespace](/serverless/functions/how-to/create-a-functions-namespace/)
22+
- A [functions namespace](/serverless/functions/how-to/create-manage-functions-namespace/)
2323
- A [function](/serverless/functions/how-to/create-a-function/)
2424
- Created an [authentication token](/serverless/functions/how-to/create-auth-token-from-console/) for your function
2525

0 commit comments

Comments
 (0)