NavigationContentFooter
Suggest an edit
Was this page helpful?

Scaleway SDKs - environment variables

Reviewed on 16 April 2025 • Published on 15 May 2023

Reserved environment variablesLink to this anchor

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

VariableDescriptionLegacy variables
$SCW_ACCESS_KEYTheaccess key of a token$SCALEWAY_ACCESS_KEY (used by Terraform/OpenTofu)
$SCW_SECRET_KEYThesecret key of a token$SCW_TOKEN (used by the CLI), $SCALEWAY_TOKEN (used by Terraform/OpenTofu), $SCALEWAY_ACCESS_KEY (used by Terraform/OpenTofu)
$SCW_DEFAULT_REGIONYour defaultregion$SCW_REGION (used by the CLI),$SCALEWAY_REGION (used by Terraform/OpenTofu)
$SCW_DEFAULT_ZONEYour defaultAvailability Zone$SCW_ZONE (used by the CLI),$SCALEWAY_ZONE (used by Terraform/OpenTofu)
$SCW_API_URLURL of the API-
$SCW_INSECURESet this variable to true to enable theinsecure mode$SCW_TLSVERIFY (inverse flag used by the CLI)
$SCW_PROFILESet the configuration profile to use-
$SCW_PROJECT_IDYourProject ID$SCW_DEFAULT_PROJECT_ID
$SCW_ORGANIZATION_IDYourOrganization ID$SCW_DEFAULT_ORGANIZATION_ID, $SCW_ORGANIZATION (used by the CLI),$SCALEWAY_ORGANIZATION (used by Terraform/OpenTofu)

Environment variables priorityLink to this anchor

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/OpenTofu configuration file).

  3. Variables defined in the

    Scaleway configuration file

Was this page helpful?
API DocsScaleway consoleDedibox consoleScaleway LearningScaleway.comPricingBlogCareers
© 2023-2025 – Scaleway