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

S3 example - move counters inside handler so they are reset on every invocation #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

agarstang
Copy link

"Avoid declaring any function variables outside the scope of the handler. Lambda does not guarantee those variables will be refreshed between function invocations."

http://docs.aws.amazon.com/lambda/latest/dg/best-practices.html

"Avoid declaring any function variables outside the scope of the handler. Lambda does not guarantee those variables will be refreshed between function invocations."

http://docs.aws.amazon.com/lambda/latest/dg/best-practices.html
@jpizarrom
Copy link

I've the same issue, I can see the values grow in aws console lambda when I testing it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants