Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Open
agarstang wants to merge 1 commit intoaws-samples:masteraws-samples/amazon-elasticsearch-lambda-samples:masterfrom
agarstang:globalvarsagarstang/amazon-elasticsearch-lambda-samples:globalvarsCopy head branch name to clipboard
Open

S3 example - move counters inside handler so they are reset on every invocation#6
agarstang wants to merge 1 commit intoaws-samples:masteraws-samples/amazon-elasticsearch-lambda-samples:masterfrom
agarstang:globalvarsagarstang/amazon-elasticsearch-lambda-samples:globalvarsCopy head branch name to clipboard

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.