Skip to content

Commit bdecb10

Browse files
chore: Added docs section on env vars in yaml (#2792)
* Added Spark support for Delta and Avro Signed-off-by: Huib Keemink <huib.keemink@jedlix.com> * Added a section about using env variables in the yaml config Signed-off-by: Huib Keemink <huib.keemink@jedlix.com> * Added info on adding defaults when using env var in yaml Signed-off-by: Huib Keemink <huib.keemink@jedlix.com>
1 parent 33141f8 commit bdecb10

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,30 @@ 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+
326+
It is possible to set a default value if the environment variable is not set, with `${ENV_VAR:"default"}`. For instance:
327+
328+
```yaml
329+
project: my_project
330+
registry: data/registry.db
331+
provider: local
332+
online_store:
333+
type: redis
334+
connection_string: ${REDIS_CONNECTION_STRING:"0.0.0.0:6379"}
335+
```
336+
313337
---
314338
## Summary
315339

0 commit comments

Comments
 (0)