Is it possible to rename an AWS Lambda function?

久未见 提交于 2019-12-09 05:00:59

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/36684520/is-it-possible-to-rename-an-aws-lambda-function

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!