1

I linked the wrong file from an AWS S3 to my AWS Lambda Function. I want to delete the file.

This post is similar, but I do not know how to reupload the zip file. I want to either replace it, or preferably, remove it so that I can edit the code again using the inline editor.

1 Answer 1

1

If you are not using versioning you will need to re-upload the correct version of the code again.

There is no removing the code you have there as this is now your Lambda functions code, any upload replaces this.

For the future take a look at using versioning for your functions so that you can ensure that any accidental uploads will not disrupt applications that are using your Lambda function.

Sign up to request clarification or add additional context in comments.

2 Comments

I see... I was trying to replicate a small example, so I didn't bother using versioning (silly me). Is there a way to see the code I had written?
It will have replaced the function without any versioning as far as I am aware there is no way to retrieve the previous version of the code. Going forward its best to combine version control with Lambda versioning to avoid this :(

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.