Endpoint environment variables

Through an endpoint update, you can assign values to environment variables that will be exposed to the deployment.

Using the client

Endpoint.update() provides a parameter for setting the endpoint’s environment variables. It can be used alongside any update strategy.

from verta.endpoint.update import DirectUpdateStrategy

endpoint.update(
    model_version, DirectUpdateStrategy(),
    env_vars=env_vars,
)

env_vars takes a dictionary of string environment variable names to string values, and will be made available to the model when it is deployed.

env_vars = {'LOG_LEVEL': "debug"}

Using the CLI

Environment variables can also be set via the CLI:

verta deployment update endpoint /some-path --model-version-id "<id>" \
    --strategy direct \
    --env-vars '{"LOG_LEVEL": "debug"}'

--env-vars takes a JSON string containing a dictionary of string environment variable names to string values.