Skip to content

zip with packaging added to create lambda function in deployment shel… #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

abidkhan484
Copy link
Contributor

Solve: #39

This PR includes,

  1. Remove the zip file of lambda function if exists.
  2. Then, create the zip file of lambda function using zip command.

Note: It's been already shared in the readme

@abidkhan484
Copy link
Contributor Author

@HarshCasper, Could you please review the PR in your available time?

@pythoninthegrass
Copy link

pythoninthegrass commented Jan 23, 2025

Can confirm this fixes my issue as well! Was getting errors like this

"Runtime.ImportModuleError", "requestId": "", "stackTrace": []}
2025-01-23T01:15:25.565  INFO --- [et.reactor-1] localstack.request.http    : POST /_localstack_lambda/59f6f0fdde014997304adab9c78a9435/status/59f6f0fdde014997304adab9c78a9435/error => 202
2025-01-23T01:15:25.565  WARN --- [et.reactor-0] l.s.l.i.execution_environm : Failed to start execution environment 59f6f0fdde014997304adab9c78a9435: Environment startup failed
"2025-01-23T01:15:25.566  WARN --- [et.reactor-0] l.s.l.i.execution_environm : Execution environment 59f6f0fdde014997304adab9c78a9435 for function arn:aws:lambda:us-east-1:000000000000:function:list:$LATEST failed during startup. Check for errors during the startup of your Lambda function.
2025-01-23T01:15:25.565  WARN --- [et.reactor-0] l.s.l.i.execution_environm : Failed to start execution environment 59f6f0fdde014997304adab9c78a9435: Environment startup failed
"2025-01-23T01:15:25.566  WARN --- [et.reactor-0] l.s.l.i.execution_environm : Execution environment 59f6f0fdde014997304adab9c78a9435 for function arn:aws:lambda:us-east-1:000000000000:function:list:$LATEST failed during startup. Check for errors during the startup of your Lambda function.
[2025-01-23T01:15:25.647  INFO --- [et.reactor-0] localstack.request.http    : GET / => 502
[2025-01-23T01:15:25.647  INFO --- [et.reactor-0] localstack.request.http    : GET / => 502

@HarshCasper HarshCasper merged commit a535aec into localstack-samples:main Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants