0 votes
1 view
in AWS by (18.2k 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 (42.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!
0 votes
by (57.2k 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.
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...