title: AWS Lambda rename the function
body: <p>I have by mistake given wrong name to AWS Lambda function. Now, I wanted to change its name. I found from the given stackoverflow question that best way to do that is just create a new function and copy the exact same code into it.
  <a href="https://stackoverflow.com/questions/36684520/is-it-possible-to-rename-an-aws-lambda-function">Is it possible to rename an AWS Lambda function?</a></p>
  
  <p>I am thinking to do that but I am just worried about data loss. Since my lambda is currently had 2 SNS triggers from where it is constantly receiving data. So, if I stop this lambda and create new one, I would lose some data during that time. Also, if I start the new lambda before deleting previous one, I would some entries in my datastore twice. So, is there any way I could use to get this done? </p>