Scaleway environment variables
Reviewed on 24 September 2023 • Published on 24 May 2023
The following standardized Scaleway environment variables are used for the CLI and API.
Variable | Description | Legacy variables |
---|---|---|
$SCW_ACCESS_KEY | The access key of a token | $SCALEWAY_ACCESS_KEY (used by Terraform) |
$SCW_SECRET_KEY | The secret key of a token | $SCW_TOKEN (used by the CLI), $SCALEWAY_TOKEN (used by Terraform), $SCALEWAY_ACCESS_KEY (used by Terraform) |
$SCW_DEFAULT_REGION | Your default region | $SCW_REGION (used by the CLI),$SCALEWAY_REGION (used by Terraform) |
$SCW_DEFAULT_ZONE | Your default Availability Zone | $SCW_ZONE (used by the CLI),$SCALEWAY_ZONE (used by Terraform) |
$SCW_API_URL | URL of the API | - |
$SCW_INSECURE | Set this variable to true to enable the insecure mode | $SCW_TLSVERIFY (inverse flag used by the CLI) |
$SCW_PROFILE | Set the configuration profile to use | - |
$SCW_PROJECT_ID | Your Project ID | $SCW_DEFAULT_PROJECT_ID |
$SCW_ORGANIZATION_ID | Your Organization ID | $SCW_DEFAULT_ORGANIZATION_ID , $SCW_ORGANIZATION (used by the CLI),$SCALEWAY_ORGANIZATION (used by Terraform) |
Recommended Scaleway configuration file
Your configuration file should at least contain the following values to be fully compatible with all developer tools:
SCW_ACCESS_KEY: SCWXXXXXXXXXXXXXXXXXSCW_SECRET_KEY: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxSCW_ORGANIZATION_ID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxSCW_PROJECT_ID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxSCW_DEFAULT_ZONE: fr-parSCW_DEFAULT_REGION: fr-par-1