Is it possible to rename an AWS Lambda function?

后端 未结 3 605
一个人的身影
一个人的身影 2021-02-06 20:24

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

3条回答
  •  北海茫月
    2021-02-06 20:56

    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.

提交回复
热议问题