# \#lambda

**URL:** https://forum.serverless.com/tag/lambda/7.md

[Latest](https://forum.serverless.com/latest.md) · [Categories](https://forum.serverless.com/categories.md) · [Tags](https://forum.serverless.com/tags.md)

---

## [Serverless Cors Issue Help](https://forum.serverless.com/t/serverless-cors-issue-help/20687)

<div class="topic-metadata">

**Author:** [@lucas1068](https://forum.serverless.com/u/lucas1068)\
**Replies:** 2\
**Last updated:** [April 21, 2026, 10:53pm UTC](https://forum.serverless.com/t/serverless-cors-issue-help/20687 "2026-04-21T22:53:33Z")

</div>

I’m facing a persistent CORS issue when trying to make a POST request from my frontend application to an API deployed with the Serverless Framework. My frontend is running on localhost:5173 (dev server) and the backend A…

---

## [Serverless package size inconsistent when project is inside a GUID-named folder (50MB vs 1MB)](https://forum.serverless.com/t/serverless-package-size-inconsistent-when-project-is-inside-a-guid-named-folder-50mb-vs-1mb/21525)

<div class="topic-metadata">

**Author:** [@knaresh](https://forum.serverless.com/u/knaresh)\
**Replies:** 1\
**Last updated:** [April 21, 2026, 10:53pm UTC](https://forum.serverless.com/t/serverless-package-size-inconsistent-when-project-is-inside-a-guid-named-folder-50mb-vs-1mb/21525 "2026-04-21T22:53:10Z")

</div>

Environment: Serverless Framework version: 3.39.0 Node.js version: 22.x OS: Windows Server npm version: 10.8.3 Setup: We’re deploying Lambda functions using Octopus Deploy + TeamCity. Octopus automatically…

---

## [Unable to update log format or level in lambdas defined with serverless framework](https://forum.serverless.com/t/unable-to-update-log-format-or-level-in-lambdas-defined-with-serverless-framework/20920)

<div class="topic-metadata">

**Author:** [@YneroY](https://forum.serverless.com/u/YneroY)\
**Replies:** 2\
**Last updated:** [March 31, 2026, 6:20pm UTC](https://forum.serverless.com/t/unable-to-update-log-format-or-level-in-lambdas-defined-with-serverless-framework/20920 "2026-03-31T18:20:13Z")

</div>

I have a serverless.yml which contains definition and deployment for multiple lambdas and also the corresponding api gateway. However, I cannot get the log and log level to be applied to the lambda. The below is added s…

---

## [Built-in python requirements plugin skips layer-only services (no functions defined)](https://forum.serverless.com/t/built-in-python-requirements-plugin-skips-layer-only-services-no-functions-defined/21688)

<div class="topic-metadata">

**Author:** [@coolloic](https://forum.serverless.com/u/coolloic)\
**Replies:** 0\
**Last updated:** [March 17, 2026, 3:53am UTC](https://forum.serverless.com/t/built-in-python-requirements-plugin-skips-layer-only-services-no-functions-defined/21688 "2026-03-17T03:53:49Z")

</div>

The built-in serverless-python-requirements plugin in Serverless Framework v4 does not generate the PythonRequirementsLambdaLayer resource or PythonRequirementsLambdaLayerQualifiedArn output for layer-only services (ser…

---

## [Errors with CORS and preflight request - API Gateway + Lambda](https://forum.serverless.com/t/errors-with-cors-and-preflight-request-api-gateway-lambda/20718)

<div class="topic-metadata">

**Author:** [@lucas1068](https://forum.serverless.com/u/lucas1068)\
**Replies:** 2\
**Last updated:** [March 17, 2026, 12:11am UTC](https://forum.serverless.com/t/errors-with-cors-and-preflight-request-api-gateway-lambda/20718 "2026-03-17T00:11:49Z")

</div>

This error occurs using API Gateway v1 with lambda-proxy. Browser client is doing a preflight request (option): 502 error Then the actual request (post): CORS error My serverless.yaml is configured this way: fu…

---

## [Update node version of the custom-resource-apigw-cw-role to Node JS 20 with serverlessFramework 3.x](https://forum.serverless.com/t/update-node-version-of-the-custom-resource-apigw-cw-role-to-node-js-20-with-serverlessframework-3-x/21145)

<div class="topic-metadata">

**Author:** [@amaravathi](https://forum.serverless.com/u/amaravathi)\
**Replies:** 1\
**Last updated:** [March 17, 2026, 12:11am UTC](https://forum.serverless.com/t/update-node-version-of-the-custom-resource-apigw-cw-role-to-node-js-20-with-serverlessframework-3-x/21145 "2026-03-17T00:11:24Z")

</div>

How to update node version of custom-resource-apigw-cw-role to NodeJS20 with serverless framework 3..x.x EOL for NodeJs 18 is 04/30/2025 We have updated serverless runtime provider version is 22, which is getting refle…

---

## [CORS Error in Safari: No Access-Control-Allow-Origin Header on Response](https://forum.serverless.com/t/cors-error-in-safari-no-access-control-allow-origin-header-on-response/21141)

<div class="topic-metadata">

**Author:** [@daay22](https://forum.serverless.com/u/daay22)\
**Replies:** 1\
**Last updated:** [February 26, 2026, 9:40pm UTC](https://forum.serverless.com/t/cors-error-in-safari-no-access-control-allow-origin-header-on-response/21141 "2026-02-26T21:40:13Z")

</div>

I am facing an issue where my backend API is returning a CORS error in Safari but works fine in Chrome and Postman. The specific error in Safari is: Access to XMLHttpRequest at ‘https://backendServer/users/login?email=e…

---

## [Seeking Advice on Best Practices for Directory Structure and Architecture in Serverless Framework (TypeScript)](https://forum.serverless.com/t/seeking-advice-on-best-practices-for-directory-structure-and-architecture-in-serverless-framework-typescript/20545)

<div class="topic-metadata">

**Author:** [@lucas1068](https://forum.serverless.com/u/lucas1068)\
**Replies:** 2\
**Last updated:** [February 13, 2026, 1:54pm UTC](https://forum.serverless.com/t/seeking-advice-on-best-practices-for-directory-structure-and-architecture-in-serverless-framework-typescript/20545 "2026-02-13T13:54:42Z")

</div>

Hi everyone, I’m currently working on a serverless project using the Serverless Framework with TypeScript, and I’m looking for advice and best practices on how to organize the project’s structure and architecture. Here…

---

## [InvalidSignatureException after upgrade NodeJS 20 to 22 in AWS lambda](https://forum.serverless.com/t/invalidsignatureexception-after-upgrade-nodejs-20-to-22-in-aws-lambda/21476)

<div class="topic-metadata">

**Author:** [@ThangBui2703](https://forum.serverless.com/u/ThangBui2703)\
**Replies:** 1\
**Last updated:** [February 5, 2026, 4:27pm UTC](https://forum.serverless.com/t/invalidsignatureexception-after-upgrade-nodejs-20-to-22-in-aws-lambda/21476 "2026-02-05T16:27:42Z")

</div>

Hi everyone, I am facing with problem when upgrade to nodeJS 22 that i have a lambda call to another lambda via axios, the error send back with error 502, when i check the cloud watch in lambda receive call it throw erro…

---

## [Unable to Import Custom Python Package in Lambda Function Using Serverless Framework](https://forum.serverless.com/t/unable-to-import-custom-python-package-in-lambda-function-using-serverless-framework/21237)

<div class="topic-metadata">

**Author:** [@neel.kotadiya](https://forum.serverless.com/u/neel.kotadiya)\
**Replies:** 1\
**Last updated:** [January 16, 2026, 8:27pm UTC](https://forum.serverless.com/t/unable-to-import-custom-python-package-in-lambda-function-using-serverless-framework/21237 "2026-01-16T20:27:51Z")

</div>

Hi everyone, I’m trying to deploy an AWS Lambda function using the Serverless Framework and run a function that depends on my own Python package. However, I’m encountering the following error at runtime: { “errorMessa…

---

## [Setting up a NestJS project for AWS Lambda?](https://forum.serverless.com/t/setting-up-a-nestjs-project-for-aws-lambda/19571)

<div class="topic-metadata">

**Author:** [@Repox](https://forum.serverless.com/u/Repox)\
**Replies:** 2\
**Last updated:** [January 2, 2026, 3:38pm UTC](https://forum.serverless.com/t/setting-up-a-nestjs-project-for-aws-lambda/19571 "2026-01-02T15:38:22Z")

</div>

Hi everyone. I was looking at the following tutorial: AWS Nest application example (NodeJS & Typescript) It seems to me that some quite essential parts are skipped for me to learn this. The tutorial states that I shou…

---

## [Issues converting existing project to serverless](https://forum.serverless.com/t/issues-converting-existing-project-to-serverless/21045)

<div class="topic-metadata">

**Author:** [@dividebyzero](https://forum.serverless.com/u/dividebyzero)\
**Replies:** 2\
**Last updated:** [January 2, 2026, 3:37pm UTC](https://forum.serverless.com/t/issues-converting-existing-project-to-serverless/21045 "2026-01-02T15:37:42Z")

</div>

I have been working on a typescript express app for a while, and I wanted to deploy with serverless as I have done in the past with other projects. I converted the app to serverless with the cli, and modified the index.t…

---

## [Put Lambda Under Existing APIG Resource But Different Method](https://forum.serverless.com/t/put-lambda-under-existing-apig-resource-but-different-method/21247)

<div class="topic-metadata">

**Author:** [@shub.saini.09](https://forum.serverless.com/u/shub.saini.09)\
**Replies:** 2\
**Last updated:** [December 23, 2025, 5:49pm UTC](https://forum.serverless.com/t/put-lambda-under-existing-apig-resource-but-different-method/21247 "2025-12-23T17:49:14Z")

</div>

In the APIG, my path is /users with GET method already created using Cloudformation. In my Serverless, i want to create a new POST method under it. How do i do it? I already tried below but it does not work. // functio…

---

## [Serverless Offline Creating Undefined Folder](https://forum.serverless.com/t/serverless-offline-creating-undefined-folder/21379)

<div class="topic-metadata">

**Author:** [@franzcvel2](https://forum.serverless.com/u/franzcvel2)\
**Replies:** 1\
**Last updated:** [December 13, 2025, 11:15am UTC](https://forum.serverless.com/t/serverless-offline-creating-undefined-folder/21379 "2025-12-13T11:15:00Z")

</div>

Hello when I use serverless-offline@14.4.0 I am able to run locally however AFTER invoking an endpoint, it’s generating a folder named undefined/temp/tsx-{logged-user} in windows just want to confirm if this is normal? …

---

## [What are the core features needed in the invoice software development?](https://forum.serverless.com/t/what-are-the-core-features-needed-in-the-invoice-software-development/21135)

<div class="topic-metadata">

**Author:** [@Suheb](https://forum.serverless.com/u/Suheb)\
**Replies:** 1\
**Last updated:** [December 13, 2025, 11:14am UTC](https://forum.serverless.com/t/what-are-the-core-features-needed-in-the-invoice-software-development/21135 "2025-12-13T11:14:08Z")

</div>

what core feature will used for invoice software development

---

## [Schedule instead of rule for invoking lambda with schedule](https://forum.serverless.com/t/schedule-instead-of-rule-for-invoking-lambda-with-schedule/21068)

<div class="topic-metadata">

**Author:** [@Tsingis](https://forum.serverless.com/u/Tsingis)\
**Replies:** 2\
**Last updated:** [November 30, 2025, 7:28pm UTC](https://forum.serverless.com/t/schedule-instead-of-rule-for-invoking-lambda-with-schedule/21068 "2025-11-30T19:28:21Z")

</div>

Documentation about schedule usage is kinda stub. How to properly use schedule instead of rule? Schedule requires permissions to invoke lambda but how is the permission generated and how it is linked to correct lambda…

---

## ["EMFILE: too many open files error" while CI/CD deploy](https://forum.serverless.com/t/emfile-too-many-open-files-error-while-ci-cd-deploy/14245)

<div class="topic-metadata">

**Author:** [@atakansavas](https://forum.serverless.com/u/atakansavas)\
**Replies:** 11\
**Last updated:** [November 19, 2025, 3:30pm UTC](https://forum.serverless.com/t/emfile-too-many-open-files-error-while-ci-cd-deploy/14245 "2025-11-19T15:30:24Z")

</div>

Hello. I have an organization with multiple nodejs lambda services. Every service have different Github repository and Ci/Cd integration. They works well until yesterday. Yesterday, after i commited some code to one of …

---

## [Ingestion \<id\>.json.gz with 1m records](https://forum.serverless.com/t/ingestion-id-json-gz-with-1m-records/19043)

<div class="topic-metadata">

**Author:** [@georgelza](https://forum.serverless.com/u/georgelza)\
**Replies:** 4\
**Last updated:** [October 15, 2025, 9:58am UTC](https://forum.serverless.com/t/ingestion-id-json-gz-with-1m-records/19043 "2025-10-15T09:58:14Z")

</div>

Hi all Looking for some suggestions. I have a .json.gz file inbound, comprised out of an array, 1M records/documents. I need to decompose the array into it’s individual documents, was looking at awswranger, but that s…

---

## [API Gateway Integration Timeout extended](https://forum.serverless.com/t/api-gateway-integration-timeout-extended/20268)

<div class="topic-metadata">

**Author:** [@willk](https://forum.serverless.com/u/willk)\
**Replies:** 8\
**Last updated:** [September 30, 2025, 5:05pm UTC](https://forum.serverless.com/t/api-gateway-integration-timeout-extended/20268 "2025-09-30T17:05:56Z")

</div>

With AWS now enabling the ability to increase timeouts. How would one go about setting the timeout for an integration in serverless? Currently the gateway is setup through the provider section and a lambda attached w…

---

## [Issue building locally on Mac architecture for AWS Linux](https://forum.serverless.com/t/issue-building-locally-on-mac-architecture-for-aws-linux/20201)

<div class="topic-metadata">

**Author:** [@jeromecovington](https://forum.serverless.com/u/jeromecovington)\
**Replies:** 1\
**Last updated:** [September 21, 2025, 5:43pm UTC](https://forum.serverless.com/t/issue-building-locally-on-mac-architecture-for-aws-linux/20201 "2025-09-21T17:43:31Z")

</div>

I can run my lambda locally using serverless offline but if I build it locally with yarn build and then deploy using serverless deploy I encounter an error in my logs when requesting the endpoint. The error I see is: “e…

---

## [How can I speed up serverless invoke local?](https://forum.serverless.com/t/how-can-i-speed-up-serverless-invoke-local/21264)

<div class="topic-metadata">

**Author:** [@naomichi](https://forum.serverless.com/u/naomichi)\
**Replies:** 1\
**Last updated:** [September 21, 2025, 5:42pm UTC](https://forum.serverless.com/t/how-can-i-speed-up-serverless-invoke-local/21264 "2025-09-21T17:42:26Z")

</div>

I recently upgraded from Serverless Framework v3 to v4, and noticed that sls invoke local -f myFunction has become noticeably slower. With v3, local invocations were near-instant. However, after switching to v4, every …

---

## [Unable to Add JSON logging for lamba](https://forum.serverless.com/t/unable-to-add-json-logging-for-lamba/21313)

<div class="topic-metadata">

**Author:** [@amara](https://forum.serverless.com/u/amara)\
**Replies:** 1\
**Last updated:** [September 1, 2025, 9:54pm UTC](https://forum.serverless.com/t/unable-to-add-json-logging-for-lamba/21313 "2025-09-01T21:54:05Z")

</div>

Hello Team, I have this config to add json logging ,but it does not deploy lambda with json logging provider: name: aws deploymentMethod: direct runtime: \<+serviceVariables.LambdaRuntime\> profile: default version…

---

## [Is Serverless Framework Free for Python 3.12 Deployments?](https://forum.serverless.com/t/is-serverless-framework-free-for-python-3-12-deployments/21235)

<div class="topic-metadata">

**Author:** [@Neel969](https://forum.serverless.com/u/Neel969)\
**Replies:** 1\
**Last updated:** [September 1, 2025, 9:53pm UTC](https://forum.serverless.com/t/is-serverless-framework-free-for-python-3-12-deployments/21235 "2025-09-01T21:53:01Z")

</div>

Hello community! :waving\_hand: I’ve developed a package using Python 3.12 and am now building an AWS Lambda function with it, deployed via the Serverless Framework. I’m using the open-source version of Serverless. Coul…

---

## [S3 existing bucket creates lambda using NodeJS 18 (which is EOL soon)](https://forum.serverless.com/t/s3-existing-bucket-creates-lambda-using-nodejs-18-which-is-eol-soon/21192)

<div class="topic-metadata">

**Author:** [@sc112233](https://forum.serverless.com/u/sc112233)\
**Replies:** 2\
**Last updated:** [June 2, 2025, 9:51am UTC](https://forum.serverless.com/t/s3-existing-bucket-creates-lambda-using-nodejs-18-which-is-eol-soon/21192 "2025-06-02T09:51:56Z")

</div>

Hi- I’ve got a project currently deployed on AWS with serverless v3 (just updated to 3.34.0), and it’s using an S3 bucket event trigger in an existing bucket, like this: events: - s3: bucket: ${self…

---

## [How to call an LLM API from AWS Lambda without wasting time on waiting for the response](https://forum.serverless.com/t/how-to-call-an-llm-api-from-aws-lambda-without-wasting-time-on-waiting-for-the-response/21230)

<div class="topic-metadata">

**Author:** [@Birowsky](https://forum.serverless.com/u/Birowsky)\
**Replies:** 0\
**Last updated:** [June 1, 2025, 2:39pm UTC](https://forum.serverless.com/t/how-to-call-an-llm-api-from-aws-lambda-without-wasting-time-on-waiting-for-the-response/21230 "2025-06-01T14:39:16Z")

</div>

My goal is to come up with an optimal LLM API vendor workflow for my serverless application. Considering that my lambdas are my application layer, calling an LLM API from a lambda causes the lambda to sit idle, wasting …

---

## [API gateway CORS error if I pass cors in provider level](https://forum.serverless.com/t/api-gateway-cors-error-if-i-pass-cors-in-provider-level/20980)

<div class="topic-metadata">

**Author:** [@zil31](https://forum.serverless.com/u/zil31)\
**Replies:** 1\
**Last updated:** [April 23, 2025, 8:59pm UTC](https://forum.serverless.com/t/api-gateway-cors-error-if-i-pass-cors-in-provider-level/20980 "2025-04-23T20:59:02Z")

</div>

Hello, I am using serverless + API gateway and facing cors error if I pass custom headers. I am adding cors configuration on the function level, and then it’s working fine, but at the provider level it’s not doing anyt…

---

## [Serverless framework custom Lambda function](https://forum.serverless.com/t/serverless-framework-custom-lambda-function/20929)

<div class="topic-metadata">

**Author:** [@Arun](https://forum.serverless.com/u/Arun)\
**Replies:** 1\
**Last updated:** [April 23, 2025, 8:57pm UTC](https://forum.serverless.com/t/serverless-framework-custom-lambda-function/20929 "2025-04-23T20:57:58Z")

</div>

Currently, I am using aws code sign to sign the code before pushing, so that genuine code will be running on Lambda funcions. I am using this plugin “@ioiotv/serverless-aws-signer” for all my serverless.yml file and it …

---

## [How to deploy Lambda functions to existing S3 buckets](https://forum.serverless.com/t/how-to-deploy-lambda-functions-to-existing-s3-buckets/18293)

<div class="topic-metadata">

**Author:** [@sfxpt](https://forum.serverless.com/u/sfxpt)\
**Replies:** 3\
**Last updated:** [April 15, 2025, 11:48am UTC](https://forum.serverless.com/t/how-to-deploy-lambda-functions-to-existing-s3-buckets/18293 "2025-04-15T11:48:18Z")

</div>

Following up on Delete S3 buckets after deployment I’ve precreated a common bucket and want to configure all my serverless.yml deployments to use that one rather than creating new ones all the time. However, unlike I…

---

## [CLI synchronous invocation - Lamda invoked repeatedly](https://forum.serverless.com/t/cli-synchronous-invocation-lamda-invoked-repeatedly/20955)

<div class="topic-metadata">

**Author:** [@markoleavy](https://forum.serverless.com/u/markoleavy)\
**Replies:** 2\
**Last updated:** [April 5, 2025, 8:43pm UTC](https://forum.serverless.com/t/cli-synchronous-invocation-lamda-invoked-repeatedly/20955 "2025-04-05T20:43:14Z")

</div>

Hello, I’ve been facing this issue: when synchronously invoking a lambda function from the Serverless CLI, if the function takes more than 285 seconds (unusual value for a default timeout…), the function is invoked agai…

---

## [Can't invoke java17 function locally](https://forum.serverless.com/t/cant-invoke-java17-function-locally/21103)

<div class="topic-metadata">

**Author:** [@dacanalr](https://forum.serverless.com/u/dacanalr)\
**Replies:** 0\
**Last updated:** [March 31, 2025, 4:29pm UTC](https://forum.serverless.com/t/cant-invoke-java17-function-locally/21103 "2025-03-31T16:29:09Z")

</div>

Hi, I’m trying to call my AWS java17 lambda function locally: npx sls invoke local -f myfunc-name -s stg -d '2025-03-31' --docker but I got this error: docker: Error response from daemon: Invalid container name (sls-d…

[Next page](https://forum.serverless.com/tag/lambda/7.md?match_all_tags=true&page=1&tags%5B%5D=lambda)
