Is there a way to recover the deleted lambda function?


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?

asked 2 years ago6861 views
2 Answers

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
answered 2 years ago
profile picture
reviewed 2 months ago

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.

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions