How to assign dynamic value to environment variable?

I’ve added a custom environment variable, can I assign a dynamic value to it.

For example:


I would call something like this in my start script:



That assumes, you’re using a start script. If you’re not, then putting something like this into the start command (in render service settings) should also work:


I was hoping to do something like this

Maybe this can be a feature request?

Hi @mittalyashu, feel free to submit that request to, you can upvote the request there to be notified of any updates!

Sure, Dynamic environment variable | Feature Requests | Render

1 Like

I can vouch for the power of this as our (Doppler) customers love using secrets referencing to build dynamic secrets.


1 Like