Explore Courses Blog Tutorials Interview Questions
0 votes
in AWS by (19.1k points)

I have created some Lambda functions on AWS for testing purposes (named as test_function something), then after testing, I found those functions can be used in prod env.

Is it possible to rename the Lambda function? and how? Or should I create a new one and copy-paste source code?

2 Answers

0 votes
by (44.4k points)

No, you cannot rename your Lambda function's name! 

There are two other options:

  1. You can create an Alias of your Lambda function for naming a specific version of the Lambda function
  2. You can create another Lambda function, do the same settings, attach the same Roles, and use the same code. You will not be charged anything extra!
If you want to learn AWS from Industry experts, you can sign up for this AWS Course by Intellipaat.
0 votes
by (108k points)
The nearest you can get to renaming the lambda function is using an alias, which is a way to name a specific version of a lambda. The actual name of the function is set once you create it. If you want to rename it, just create a new function and copy the same code into it. It won't cost you any extra to do this (since you are only charged for execution time) so you lose nothing.

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer

Browse Categories