Chalk home page
  1. Integrations
  2. Environment Variables

Chalk lets you inject environment variables into the runtime for your resolvers. You can add an environment variable through the dashboard, where you’ll find a form that looks like this:

Add New Environment Variable

Add a new environment variable. All environment variables are encrypted.


Learn more about Environment Variables

Here, you can provide any environment variable you need. The value will be available in all of the environments you check on the right side of the pane.

Environment variables can include secrets or configuration. All environment variables are securely stored using a Key Management Service.

Then, in your resolver or in a setup hook, you can access these environment variables as you would normally:

import os

value = os.getenv("my_variable")