Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
How to use environment variables specified in the app spec as values for fields inside the app spec?
Lets say you have specified an encrypted app wide environment variable in the app spec. Now you wish to use this environment variable as a value for a field inside the app spec. Is it possible?
I wish to forward logs to Logtail. In order to do that, I need to set up log_destinations and provide a token. I don’t wish to upload the token to version control, and thus instead specify the token as an encrypted app wide environment variable. Is it possible to somehow use this same environment variable as value for the “token” field?
If not, is there a way to inject environment variables into the app spec file e.g. from github environment variables?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×