The Wayback Machine - https://web.archive.org/web/20201220133839/https://github.com/nficano/python-lambda/issues/75
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lambda function gets enviroment variable name #75

Open
agustin320 opened this issue Oct 2, 2017 · 2 comments
Open

lambda function gets enviroment variable name #75

agustin320 opened this issue Oct 2, 2017 · 2 comments

Comments

@agustin320
Copy link

@agustin320 agustin320 commented Oct 2, 2017

When calling invoke, if you try to get a env var (os.environ['host']) set in the config file like so:
host: $HOST it will print out $HOST instead of the actual value of the envar $HOST

@bob-codingdutchmen
Copy link

@bob-codingdutchmen bob-codingdutchmen commented Oct 23, 2017

Note: the README indicates the correct usage is ${HOST}, but the result is the same for me: it just gets the name of the var

@bob-codingdutchmen
Copy link

@bob-codingdutchmen bob-codingdutchmen commented Oct 23, 2017

I scrolled through the code, and it looks like the get_environment_variable_value function is only called when actually creating or updating a function on AWS lambda. It shouldn't be too hard to make a pull request for, but I'm not sure if I'll have the time soon.

mpgo13 added a commit to mpgo13/python-lambda that referenced this issue Dec 27, 2017
nficano added a commit that referenced this issue Jan 4, 2018
Fix env vars on invoke #75
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.