Aptible injects the following metadata keys as environment variables:
APTIBLE_PROCESS_TYPE
Represents the name of the Service this container belongs to. For example, if the Procfile defines services like web
and worker
.
Then, the containers for the web Service will run with APTIBLE_PROCESS_TYPE=web
, and the containers for the worker Service will run with APTIBLE_PROCESS_TYPE=worker
.
If there is no Procfile and users choose to use an Implicit Service instead, the variable is set to APTIBLE_PROCESS_TYPE=cmd
.
APTIBLE_PROCESS_INDEX
APTIBLE_PROCESS_CONTAINER_COUNT
APTIBLE_PROCESS_INDEX
, and represents the total count of containers on the service. Note that this will only be present in app service containers (not in pre_release, ephemeral/ssh, or database containers).APTIBLE_CONTAINER_CPU_SHARE
APTIBLE_CONTAINER_PROFILE
APTIBLE_CONTAINER_SIZE
APTIBLE_LAYER
APTIBLE_GIT_REF
APTIBLE_ORGANIZATION_HREF
APTIBLE_APP_HREF
APTIBLE_DATABASE_HREF
APTIBLE_SERVICE_HREF
APTIBLE_RELEASE_HREF
APTIBLE_EPHEMERAL_SESSION_HREF
APTIBLE_USER_DOCUMENT
You can use the above script to decode the expired JWT object using jwtp $APTIBLE_USER_DOCUMENT
APTIBLE_RESOURCE_HREF
APTIBLE_ALLOCATION
Aptible injects the following metadata keys as environment variables:
APTIBLE_PROCESS_TYPE
Represents the name of the Service this container belongs to. For example, if the Procfile defines services like web
and worker
.
Then, the containers for the web Service will run with APTIBLE_PROCESS_TYPE=web
, and the containers for the worker Service will run with APTIBLE_PROCESS_TYPE=worker
.
If there is no Procfile and users choose to use an Implicit Service instead, the variable is set to APTIBLE_PROCESS_TYPE=cmd
.
APTIBLE_PROCESS_INDEX
APTIBLE_PROCESS_CONTAINER_COUNT
APTIBLE_PROCESS_INDEX
, and represents the total count of containers on the service. Note that this will only be present in app service containers (not in pre_release, ephemeral/ssh, or database containers).APTIBLE_CONTAINER_CPU_SHARE
APTIBLE_CONTAINER_PROFILE
APTIBLE_CONTAINER_SIZE
APTIBLE_LAYER
APTIBLE_GIT_REF
APTIBLE_ORGANIZATION_HREF
APTIBLE_APP_HREF
APTIBLE_DATABASE_HREF
APTIBLE_SERVICE_HREF
APTIBLE_RELEASE_HREF
APTIBLE_EPHEMERAL_SESSION_HREF
APTIBLE_USER_DOCUMENT
You can use the above script to decode the expired JWT object using jwtp $APTIBLE_USER_DOCUMENT
APTIBLE_RESOURCE_HREF
APTIBLE_ALLOCATION