Skip to content

Commit 2ba4e2e

Browse files
Added a section about using env variables in the yaml config
Signed-off-by: Huib Keemink <huib.keemink@jedlix.com>
1 parent ace2817 commit 2ba4e2e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/how-to-guides/running-feast-in-production.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,19 @@ We use an [InfluxDB-style extension](https://github.com/prometheus/statsd_export
310310
We chose StatsD since it's a de-facto standard with various implementations (eg, [1](https://github.com/prometheus/statsd_exporter), [2](https://github.com/influxdata/telegraf/blob/master/plugins/inputs/statsd/README.md))
311311
and metrics can be easily exported to Prometheus, InfluxDB, AWS CloudWatch, etc.
312312

313+
## 7. Using environment variables in your yaml configuration
314+
315+
You might want to dynamically set parts of your configuration from your environment. For instance to deploy Feast to production and development with the same configuration, but a different server. Or to inject secrets without exposing them in your git repo. To do this, it is possible to use the `${ENV_VAR}` syntax in your `feature_store.yaml` file. For instance:
316+
317+
```yaml
318+
project: my_project
319+
registry: data/registry.db
320+
provider: local
321+
online_store:
322+
type: redis
323+
connection_string: ${REDIS_CONNECTION_STRING}
324+
```
325+
313326
---
314327
## Summary
315328

0 commit comments

Comments
 (0)