repost.aws Open in urlscan Pro
3.168.122.74  Public Scan

URL: https://repost.aws/questions/QUMto54p19RmWADHh7alzFNQ/is-there-a-way-to-recover-the-deleted-lambda-function
Submission: On September 17 via manual from US — Scanned from US

Form analysis 1 forms found in the DOM

<form id="askQuestion"><label for="AnswerCreate_md" class="PostBody_label__pfzPS">Add your answer</label>
  <div>
    <p class="AnswerInfo_extraInfo__rk00V">You are not logged in.<!-- --> <a title="Log in" rel="nofollow" href="/account/signin">Log in</a> <!-- -->to post an answer.</p>
    <div class="AnswerInfo_container__Z1Vda">
      <p class="AnswerInfo_italic__OP_NX">A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.</p>
      <div class="GoodAnswerModal_container__wDoMu">
        <div class="GoodAnswerModal_tipContainer__79LoC" role="button" tabindex="0"><span role="img" aria-label="Guidelines" class="anticon anticon-question-circle GoodAnswerModal_tipIcon__5Ci0L"><svg viewBox="64 64 896 896" focusable="false"
              data-icon="question-circle" width="1em" height="1em" fill="currentColor" aria-hidden="true">
              <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"></path>
              <path
                d="M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z">
              </path>
            </svg></span><span class="GoodAnswerModal_textCentered__ipTVn">Guidelines for Answering Questions</span></div>
      </div>
    </div>
  </div>
  <div class="Editor_wrapper__DGWud">
    <div class="Editor_editor__Zwi9K PostBody_editor__uVYDf">
      <div id="AnswerCreate" class="rc-md-editor  ">
        <div class="rc-md-navigation visible">
          <div class="navigation-nav left">
            <div class="button-wrap"><span class="button button-type-bold" title="Bold" role="button" tabindex="0"><i class="rmel-iconfont rmel-icon-bold"></i></span><span class="button button-type-italic" title="Italic" role="button"
                tabindex="0"><i class="rmel-iconfont rmel-icon-italic"></i></span><span class="button button-type-strikethrough" title="Strikethrough" role="button" tabindex="0"><i class="rmel-iconfont rmel-icon-strikethrough"></i></span><span
                class="button button-type-unordered" title="Unordered List" role="button" tabindex="0"><i class="rmel-iconfont rmel-icon-list-unordered"></i></span><span class="button button-type-order" title="Ordered List" role="button"
                tabindex="0"><i class="rmel-iconfont rmel-icon-list-ordered"></i></span><span class="button button-type-block-quote" title="Quote" role="button" tabindex="0"><i class="rmel-iconfont rmel-icon-quote"></i></span><span
                class="button button-type-block-code-block" title="Code" role="button" tabindex="0"><i class="rmel-iconfont rmel-icon-code-block"></i></span><span class="button button-type-code-inline" title="Inline Code" role="button"
                tabindex="0"><i class="rmel-iconfont rmel-icon-code"></i></span><span role="button" class="button button-type-table" title="Table"><i class="rmel-iconfont rmel-icon-grid"></i>
                <div class="drop-wrap hidden">
                  <ul class="table-list wrap" style="width: 135px; height: 112px;">
                    <li class="list-item " style="top: 0px; left: 0px;"></li>
                    <li class="list-item " style="top: 0px; left: 23px;"></li>
                    <li class="list-item " style="top: 0px; left: 46px;"></li>
                    <li class="list-item " style="top: 0px; left: 69px;"></li>
                    <li class="list-item " style="top: 0px; left: 92px;"></li>
                    <li class="list-item " style="top: 0px; left: 115px;"></li>
                    <li class="list-item " style="top: 23px; left: 0px;"></li>
                    <li class="list-item " style="top: 23px; left: 23px;"></li>
                    <li class="list-item " style="top: 23px; left: 46px;"></li>
                    <li class="list-item " style="top: 23px; left: 69px;"></li>
                    <li class="list-item " style="top: 23px; left: 92px;"></li>
                    <li class="list-item " style="top: 23px; left: 115px;"></li>
                    <li class="list-item " style="top: 46px; left: 0px;"></li>
                    <li class="list-item " style="top: 46px; left: 23px;"></li>
                    <li class="list-item " style="top: 46px; left: 46px;"></li>
                    <li class="list-item " style="top: 46px; left: 69px;"></li>
                    <li class="list-item " style="top: 46px; left: 92px;"></li>
                    <li class="list-item " style="top: 46px; left: 115px;"></li>
                    <li class="list-item " style="top: 69px; left: 0px;"></li>
                    <li class="list-item " style="top: 69px; left: 23px;"></li>
                    <li class="list-item " style="top: 69px; left: 46px;"></li>
                    <li class="list-item " style="top: 69px; left: 69px;"></li>
                    <li class="list-item " style="top: 69px; left: 92px;"></li>
                    <li class="list-item " style="top: 69px; left: 115px;"></li>
                    <li class="list-item " style="top: 92px; left: 0px;"></li>
                    <li class="list-item " style="top: 92px; left: 23px;"></li>
                    <li class="list-item " style="top: 92px; left: 46px;"></li>
                    <li class="list-item " style="top: 92px; left: 69px;"></li>
                    <li class="list-item " style="top: 92px; left: 92px;"></li>
                    <li class="list-item " style="top: 92px; left: 115px;"></li>
                  </ul>
                </div>
              </span><span class="button button-type-image" title="Image" role="button" tabindex="0"><i class="rmel-iconfont rmel-icon-image"></i></span><span class="button button-type-link" title="Link" role="button"
                tabindex="0"><i class="rmel-iconfont rmel-icon-link"></i></span><span role="button" data-testid="button-undo" class="button button-type-undo disabled" title="Undo" tabindex="-1"><i class="rmel-iconfont rmel-icon-undo"></i></span><span
                role="button" data-testid="button-redo" class="button button-type-redo disabled" title="Redo" tabindex="-1"><i class="rmel-iconfont rmel-icon-redo"></i></span><span></span></div>
          </div>
          <div class="navigation-nav right">
            <div class="button-wrap">
              <span><a title="Preview" role="button" tabindex="0">Preview</a></span><span><a title="Formatting guide" href="https://www.markdownguide.org/basic-syntax/" target="_blank" rel="noopener noreferrer">Formatting guide</a></span></div>
          </div>
        </div>
        <div class="editor-container">
          <section class="section sec-md visible"><textarea id="AnswerCreate_md" name="textarea" placeholder="Start writing your answer" class="section-container input " wrap="hard" maxlength="15000" aria-invalid="false"
              aria-describedby="AnswerCreate-error" style="height: 200px;"></textarea></section>
          <section class="section sec-html visible">
            <div id="AnswerCreate_html" class="section-container html-wrap" style="height: 200px;">
              <div class="custom-html-style"></div>
            </div>
          </section>
        </div>
      </div>
    </div>
  </div>
  <div id="AnswerCreate-error" class="PostBody_errors__ylDGI"></div>
  <div class="AnswerCreate_actionContainer__5Ig90"><button title="Clear" type="button" class="ant-btn ant-btn-default Button_secondary__pFIlL Button_disabled__Cu6k9 Button_large__AqiVe " disabled=""><span>Clear</span></button><span
      style="display:inline-block;cursor:not-allowed" class="ant-tooltip-disabled-compatible-wrapper"><button title="Post answer" style="pointer-events:none" type="button"
        class="ant-btn ant-btn-default Button_primary__swzAa Button_disabled__Cu6k9 Button_large__AqiVe " disabled=""><span>Post answer</span></button></span></div>
</form>

Text Content

SELECT YOUR COOKIE PREFERENCES

We use essential cookies and similar tools that are necessary to provide our
site and services. We use performance cookies to collect anonymous statistics,
so we can understand how customers use our site and make improvements. Essential
cookies cannot be deactivated, but you can choose “Customize” or “Decline” to
decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide
useful site features, remember your preferences, and display relevant content,
including relevant advertising. To accept or decline all non-essential cookies,
choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

AcceptDeclineCustomize


CUSTOMIZE COOKIE PREFERENCES

We use cookies and similar tools (collectively, "cookies") for the following
purposes.


ESSENTIAL

Essential cookies are necessary to provide our site and services and cannot be
deactivated. They are usually set in response to your actions on the site, such
as setting your privacy preferences, signing in, or filling in forms.




PERFORMANCE

Performance cookies provide anonymous statistics about how customers navigate
our site so we can improve site experience and performance. Approved third
parties may perform analytics on our behalf, but they cannot use the data for
their own purposes.

Allow performance category
Allowed


FUNCTIONAL

Functional cookies help us provide useful site features, remember your
preferences, and display relevant content. Approved third parties may set these
cookies to provide certain site features. If you do not allow these cookies,
then some or all of these services may not function properly.

Allow functional category
Allowed


ADVERTISING

Advertising cookies may be set through our site by us or our advertising
partners and help us deliver relevant marketing content. If you do not allow
these cookies, you will experience less relevant advertising.

Allow advertising category
Allowed

Blocking some types of cookies may impact your experience of our sites. You may
review and change your choices at any time by selecting Cookie preferences in
the footer of this site. We and selected third-parties use cookies or similar
technologies as specified in the AWS Cookie Notice.

CancelSave preferences




UNABLE TO SAVE COOKIE PREFERENCES

We will only store essential cookies at this time, because we were unable to
save your cookie preferences.

If you want to change your cookie preferences, try again later using the link in
the AWS console footer, or contact support if the problem persists.

Dismiss


By using AWS re:Post, you agree to the AWS re:Post Terms of Use
re:Post
Search

English
EnglishDeutschEspañolFrançaisItaliano日本語한국어Português中文 (简体)中文 (繁體)
Resources
Sign in
 * Home
 * Questions
 * Knowledge Center
 * Articles
 * Selections
 * Tags
 * Topics
 * Community Groups
 * More…

Ask question

AWS Business Support. See Eligibility for a free 60-day trial

Less than 1 hour response times for production system down cases, 24x7 access to
cloud experts and 400+ personalized recommendations to optimize costs, improve
performance, increase security, and monitor service quotas with Trusted Advisor.
Click here to see if you are eligible for a free 60-day trial.

 1. /
 2. Questions/
 3. Is there a way to recover the deleted lambda function?/


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?

FollowCommentShare
 * Omid Eidivandi
   2 years ago
   
   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?
   
    * Share

Topics
ServerlessComputeNetworking & Content Delivery
Tags
AWS LambdaLambda@Edge
Language
English
ryan123
asked 2 years ago7904 views
2 Answers

 * Newest
 * Most votes
 * Most comments

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.

CommentShare
EXPERT
Uri
answered 2 years ago
EXPERT
Gary Mclean
reviewed 5 months ago

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.

CommentShare
Cloud-Karamchari
answered 2 years ago

Add your answer

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
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 

PreviewFormatting guide


ClearPost answer


RELEVANT CONTENT

 * how do i delete a lambda@edge that isn't attached to a cloudfront?
   cctommyvn
   asked 3 years ago
 * How to restore a accidentely deleted AWS Lambda Layer
   satish
   asked 8 months ago
 * I suspended the account, is there a way to recover files from a deleted
   instance?
   cassio
   asked a year ago
 * How I can delete a network interface that is connected with lambda function
   that does not exist anymore
   Accepted Answer
   Gridics
   asked 8 months ago
 * How can I check to see who modified a Lambda function what changes were made?
   AWS OFFICIALUpdated a year ago
 * I received the message "NetworkInterfaces associated with the Lambda Function
   to be cleaned up" when deleting a CloudFormation stack.
   AWS OFFICIALUpdated 3 years ago
 * How can I recover a deleted FSx for ONTAP volume?
   AWS OFFICIALUpdated a year ago
 * How do I migrate a Lambda function to another AWS account or Region using the
   Lambda console?
   AWS OFFICIALUpdated 2 years ago
 * How to get Overall or Total Purchased Spice Capacity of an Amazon Quicksight
   for a particular region with the help of Lambda function using Boto3/API
   EXPERT
   siriguppa venkat sai
   published 2 months ago
 * Why do I get an error "The snapshot is currently in use by AMI" when I try to
   delete an EBS snapshot, even though there is no AMI on the account?
   EXPERT
   Dnyaneshwar Bhosale DB
   published 9 months ago


FEEDBACK
 * Privacy|
 * Site Terms|
 * Cookie Preferences|
 * Sitemap|
 * Legal|
 * © 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Community Guidelines