Renaming AWS Lambda function

0 votes
Is there a way to rename functions that I created for testing purposes? If yes how?
Apr 19, 2018 in AWS by brat_1
• 7,170 points
7,145 views

4 answers to this question.

0 votes

Try using an alias, that is one way you would be able to rename the version. This will help you change the version, but the actual name will remain the same after creation. You may simply create a a new function and copy the existing code, if you need a name change. This won’t cost extra.

Refer this if you wish to understand more: https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html

answered Apr 19, 2018 by hemant
• 5,800 points

edited Aug 20, 2018 by Priyaj
0 votes

The closest 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 though, is set once you create it. If you want to rename it, just create a new function and copy the exact 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.

For a reference on how to name versions of the lambda function check out the documentation here.

answered Aug 20, 2018 by Priyaj
• 57,700 points
0 votes

You can't rename the function as the name becomes part of the endpoint. You can change the description by going into your function and hitting 'Configuration'. Regardless, I don't think it matters what your function is called as the customer will not see any of this. As long as you change whatever is needed in the developer portal which is ucstomer facing, you should be good.

answered Sep 3, 2018 by findingbugs
• 4,790 points
0 votes
Nope- the function name is immutable
answered Mar 6, 2019 by anonymous

Related Questions In AWS

0 votes
1 answer
0 votes
1 answer

How to link AWS Lambda function to Amazon CloudWatch ?

In order to create Log Group and ...READ MORE

answered Jul 20, 2018 in AWS by datageek
• 2,500 points
634 views
0 votes
1 answer

Error when tried to invoke lambda function by AWS CLI

It looks like you need to provide ...READ MORE

answered Sep 10, 2018 in AWS by Archana
• 4,150 points
1,119 views
0 votes
1 answer
0 votes
1 answer
+2 votes
3 answers
+3 votes
6 answers

Renaming files in S3

You can either use AWS CLI or ...READ MORE

answered Oct 16, 2018 in AWS by petter dj
7,051 views
+3 votes
4 answers