Skip to content

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

Open
agarstang wants to merge 1 commit intoaws-samples:masterfrom
agarstang:globalvars
Open

S3 example - move counters inside handler so they are reset on every invocation#6
agarstang wants to merge 1 commit intoaws-samples:masterfrom
agarstang:globalvars

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