#How to use environment variables

2 messages · Page 1 of 1 (latest)

formal hamlet
#

I have added environment variables in my runpod serverless endpoind, the thing is i cant reach then inside the pod, i have defined it like this in the UI:

key. | value
SOME_KEY | keyvaluehere

and in the code i am trying to use them like this:

ENVIRONMENT_KEY_CONSTANT = os.getenv("SOME_KEY", "")

WHAT AM I DOING WRONG HERE

daring mountain