title: Change value of environment variable while invoking Lambda function
body: <p>I am learning lambda and currently trying to understand the environment variables. Below is a very simple code to show my question. (A nodejs function that will simply print the value of name constant).</p>
  <pre><code>exports.handler =  async function(event, context) {
     
     const name = process.env.NAME;
      return name;
    
  };
  </code></pre>
  <p>I have already defined a environment variable on lambda as following</p>
  <p><a href="https://i.stack.imgur.com/GoHGO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GoHGO.png" alt="enter image description here" /></a></p>
  <p>Now this lambda will surely print &quot;xyz&quot; after completion. But how we can overwrite/change the value of the &quot;Name&quot; variable while running the Lambda. so while invoking it will show the new value? For example something like --NAME = &quot;abc&quot; or --NAME abc</p>