Environment Variables
Environment variables are created and managed in the dashboard. They are injected into an automation’s environment at runtime.
Accessing Environment Variables
Environment variables are accessed in the same way as normal Python scripts. Typically, this is with the os
module.
Secrets
Secrets are encrypted in storage and during transport, and are obfuscated from automation logs. You can create a secret by enabling the secret toggle when creating an environment variable in the dashboard.
Global Environment Variables
Global environment variables are created in the settings page. They are injected into all automation runtimes.
Scoped Environment Variables
Scoped environment variables are only injected into the automation they are associated with. They can be created and managed in the Environment Variables Tab of an installed automation’s page.
Required Environment Variables
Automation authors can specify required_env_vars
keys in an automation’s task decorator. An automation with required environment variables cannot be enabled until all required environment variables are defined, either scoped or globally.