Found an easy way to load all environment variables by looking at the Elastic Beanstalk support forums:
. /opt/python/current/env
To view the variable: echo ${VAR_NAME} or printenv VAR_NAME , which does not work before using the above command. ( UNIX, get the environment variable )
Bonus:
To simply view a list of variables: printenv
List variables as export: cat /opt/python/current/env
To add export to the end of the configuration file: cat /opt/python/current/env >> /path/to/my/file
source share