| Variable Type | Scope | Creation | Reference | Encrypted |
|---|---|---|---|---|
| Environment variable | System | Code | {{ env_var() }} | 🚫 |
| Runtime variable | Pipeline | Code/UI | kwargs or {{ variables() }} | 🚫 |
| Block variable | Block | Code/UI | kwargs['configuration'][key] | 🚫 |
| Secret | Project | UI | {{ mage_secret_var() }} | ✅ |
Variables
Mage variables
There are a few ways to set up variables in Mage, here’s how you can use them to make the best pipelines the world has ever seen. 🌎
There are four types of variable in Mage: Environment variables, runtime variables, block variables, and secrets.
Here’s a brief overview of each: