AWS saves the state of your lambdas so global variables values can be passed/accessed between executions. Lambda lifecycle When you trigger a Lambda function on AWS, it creates a container to run your function. After the executions ends, that container is not destroyed – it is frozen until the next execution. That is what Amazon…