Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion developer-tools/scaleway-cli/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ content:
paragraph: This page explains how to install and configure the Scaleway CLI locally
tags: devtools cli download-cli scaleway-cli command-line
dates:
validation: 2024-04-03
validation: 2024-10-10
posted: 2021-09-21
categories:
- devtools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,10 @@ content:
paragraph: This page contains a list of standardized environment variables used throughout the Scaleway developer tools.
tags: devtools cli api variables
dates:
validation: 2024-04-03
validation: 2024-10-10
posted: 2023-05-15
categories:
- devtools
---

# Reserved environment variables

<Macro id="scaleway-environment-variables" />

## Environment variables priority

When the same environment variable is injected by multiple sources, the Scaleway infrastructure follows a precedence rule to determine the value for that variable.

The order of precedence, from highest to lowest is the following.

1. Environment variables defined in your command-line environment.

2. Static variables (i.e. variables set in a Terraform configuration file).

3. Variables defined in the [Scaleway configuration file](/developer-tools/scaleway-cli/reference-content/scaleway-configuration-file/)
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,10 @@ content:
paragraph: This page contains a list of standardized environment variables used throughout the Scaleway developer tools.
tags: devtools cli api variables
dates:
validation: 2024-04-03
validation: 2024-10-10
posted: 2023-05-15
categories:
- devtools
---

## Reserved environment variables

<Macro id="scaleway-environment-variables" />

## Environment variables priority

When the same environment variable is injected by multiple sources, the Scaleway infrastructure follows a precedence rule to determine the value for that variable.

The order of precedence, from highest to lowest is the following.

1. Environment variables defined in your command-line environment.

2. Static variables (i.e. variables set in a Terraform configuration file).

3. Variables defined in the [Scaleway configuration file](/developer-tools/scaleway-sdk/reference-content/scaleway-configuration-file/)
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,10 @@ content:
paragraph: This page contains a list of standardized environment variables used throughout the Scaleway developer tools.
tags: devtools cli api variables terraform
dates:
validation: 2024-04-03
validation: 2024-10-10
posted: 2023-05-24
categories:
- devtools
---

## Reserved environment variables

<Macro id="scaleway-environment-variables" />

## Environment variables priority

When the same environment variable is injected by multiple sources, the Scaleway infrastructure follows a precedence rule to determine the value for that variable.

The order of precedence, from highest to lowest is the following.

1. Environment variables defined in your command-line environment.

2. Static variables (i.e. variables set in a Terraform configuration file).

3. Variables defined in the [Scaleway configuration file](/developer-tools/terraform/reference-content/scaleway-configuration-file/)
2 changes: 1 addition & 1 deletion faq/serverless-sql-databases.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ content:
h1: Serverless SQL Databases
hero: assets/serverless-sql-database.webp
dates:
validation: 2024-03-25
validation: 2024-10-10
category: serverless
---

Expand Down
14 changes: 14 additions & 0 deletions macros/developer-tools/scaleway-environment-variables.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
macro: scaleway-environment-variables
---

# Reserved environment variables

The following standardized Scaleway environment variables are used for the CLI and API.

| Variable | Description | Legacy variables |
Expand All @@ -15,3 +17,15 @@ The following standardized Scaleway environment variables are used for the CLI a
| `$SCW_PROFILE` | Set the configuration profile to use | - |
| `$SCW_PROJECT_ID` | Your [Project ID](https://console.scaleway.com/project/settings) | `$SCW_DEFAULT_PROJECT_ID` |
| `$SCW_ORGANIZATION_ID` | Your [Organization ID](https://console.scaleway.com/organization/settings) | `$SCW_DEFAULT_ORGANIZATION_ID`, `$SCW_ORGANIZATION` (used by the CLI),`$SCALEWAY_ORGANIZATION` (used by Terraform) |

## Environment variables priority

When the same environment variable is injected by multiple sources, the Scaleway infrastructure follows a precedence rule to determine the value for that variable.

The order of precedence, from highest to lowest is the following.

1. Environment variables defined in your command-line environment.

2. Static variables (i.e. variables set in a Terraform configuration file).

3. Variables defined in the [Scaleway configuration file](/developer-tools/scaleway-sdk/reference-content/scaleway-configuration-file/)
2 changes: 1 addition & 1 deletion serverless/functions/how-to/test-a-function.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ content:
paragraph: Instructions for testing your Serverless Functions on Scaleway.
tags: function serverless test-function
dates:
validation: 2024-04-03
validation: 2024-10-10
posted: 2023-09-25
categories:
- serverless
Expand Down
2 changes: 1 addition & 1 deletion serverless/functions/reference-content/deploy-function.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ content:
h1: Methods to deploy Serverless Functions
paragraph: Step-by-step guide to deploying Serverless Functions on Scaleway.
dates:
validation: 2024-04-03
validation: 2024-10-10
posted: 2023-03-10
---

Expand Down