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. 🌎
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() }} | ✅ |