title: Does AWS lambda store global variables?
body: <p>I have created simple increment counter as below.</p>
  
  <pre><code>global.counter = 0;
  exports.handler = (event, context, callback) =&gt; {
      // TODO implement
      callback(null, ++global.counter);
  };
  </code></pre>
  
  <p>Whenever I test this function, I get incremented value as expected.</p>
  
  <p>Is this right approach or do I need to store counter in cloud database?</p>