Is there a way to recover the deleted lambda function?

1

Hello I made a mistake. I deleted the lambda function that I was using. I want to restore the deleted lambda function. Can you tell me how?

  • When you deploy a lambda function you upload your code by zip file?

    If so just recreate a lambda function uploading last zip file

    Is it you case?

ryan123
已提问 2 年前6723 查看次数
2 回答
3

There is no API to restore a function. This is one of the reasons that we recommend using Infrastructure as Code, such as SAM or serverless framework. You keep your functions in a repository and you deploy it from there.

profile pictureAWS
专家
Uri
已回答 2 年前
profile picture
专家
已审核 1 个月前
0

There is no option or way to retrieve the deleted AWS lambda code, but related logs, roles, test event schemas, and triggers will be retained in your account.

已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则