arkonl
arkonl

Reputation: 29

How to overcome error message about large package zip file and invoke function on Lambda

I am writing tests on Python and execute using Selenium with AWS Lambda. On last step uploaded zip package on S3 and attached link on this file in settings of Lambda, however when trying to save changes Lambda saying:

"The deployment package of your Lambda function "deployWebScraperLambdaSelenium" is too large to enable inline code editing. However, you can still invoke your function right now."

Screenshot of settings in this link: https://prnt.sc/k4e4u8

buildn.zip file size ~58mb

How possible to overcome this message and run Lambda test?

Upvotes: 0

Views: 4061

Answers (1)

Arafat Nalkhande
Arafat Nalkhande

Reputation: 11708

The message about file size being too large is not an error message.

It is just telling you that because the file size is too large online editing of code is not allowed. However you can still go ahead and test the Lambda.

For that, click on 'Test' button at the top of the screen. Then select 'Create new test event'. Now give it a name and enter the payload and hit Create. Now from the drop-down of available test events select the newly created test event and hit Test button. That should let you test your Lambda with your sample payload

Upvotes: 1

Related Questions