Injected environment variables
The following standardized Scaleway environment variables are injected by default in the Job runs to improve and optimize data management.
| Variable name | Description | Sample value |
|---|---|---|
$SCW_SLS_RESOURCE_ID | ID of the Job run | 00000000-0000-0000-0000-000000000000 |
$SCW_SLS_PARENT_ID | ID of the Job definition | 00000000-0000-0000-0000-000000000000 |
$SCW_SLS_RESOURCE_NAME | Name of the Job run | "job-name" |
$SCW_SLS_PROJECT_ID | ID of the Project of the Job | 00000000-0000-0000-0000-000000000000 |
$SCW_SLS_ORGANIZATION_ID | ID of the Organization of the Job | 00000000-0000-0000-0000-000000000000 |
$SCW_SLS_CPU | vCPU limit of the Job run | 560 |
$SCW_SLS_RAM | Memory limit of the Job run | 1024 |
$SCW_SLS_EPHEMERAL_STORAGE | Ephemeral storage limit of the Job run | 1000 |
$SCW_SLS_IMAGE | Image of the Job run | scaleway/cli:latest |
$SCW_SLS_REGION | Region of the Job run | fr-par |
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.
-
Environment variables defined in your command-line environment.
-
Static variables (i.e. variables set in a Terraform/OpenTofu configuration file).
-
Variables defined in the Scaleway SDK configuration file or Scaleway CLI configuration file.
Still need help?Create a support ticket