3,097 questions
1
vote
1
answer
127
views
CredentialsProviderError using ApiGatewayManagementApiClient in Serverless Framework Offline
I'm having issues trying to get Serverless Framework (using the Offline plugin) to be able to use the ApiGatewayManagementApiClient to send WebSocket responses offline.
It's probably just using the ...
0
votes
1
answer
82
views
Not able to load ESM library at run time in a CJS project
I am working on a serverless project. Following is the snippet of serverless configuration
bundle:
sourcemaps: true
disableForkTsChecker: true
externals:
- newrelic # Keeps ...
0
votes
0
answers
42
views
unable to merge mappings in serverless.yaml file
I have a serverless.yaml file using the serverless framework. I have it including a models.yaml file since it is over 1,000 lines.it gives me an error that it is unable to merge. I have tried multiple ...
0
votes
1
answer
82
views
Deployment using serverless framework is failing in Github Actions
Here is the problem - First of all what is this instance limit in serverless-dashboard (check the image) -> serverless-dashboard? is it possible to reduce it?
Secondly, I have created a serverless ...
-3
votes
3
answers
147
views
Serverless how to create a function that runs for over 30 seconds on AWS?
everyone,
I am aware that a AWS lambda is only allowed to run for 30 seconds. But I am working on a feature that takes around 2 minutes to finish processing.
In fact I see the end of the request on ...
0
votes
0
answers
16
views
How to organize files in your main source folder or custom path in serverless framework?
My folder structure is as below
functions
function1
src
lib
xyz.js
index.js
function1.yml
function2
src
lib
xyz.js
...
1
vote
0
answers
34
views
SQS Message from Lambda function never arrives at the queue
I have a project using Serverless Framework that has two functions - one an express API, which for some endpoints will communicate with the second function (reportGenerator), which is triggered by the ...
0
votes
1
answer
76
views
How to debug an aws lambda function that is been invoked locally? Serverlessframework, NodeJS runtime, Windows10
I’m trying to setup a debugger when I run a function locally. Currently I execute function this way:
serverless invoke local --function myFunctionName --env dev --path ./events/myFunctionName.json
I’...
0
votes
1
answer
68
views
Invoke a Lambda from API Gateway Integration across different stacks using CloudFormation and Serverless Framework
I have a websocket in a proxy service (this service is a CloudFormation stack), my FE app connects to this websocket.
one of the websocket routes, let's call it "startFeedback", needs to ...
1
vote
0
answers
188
views
Deploy Serverless Typescript with Esbuild to AWS lambda
I am trying to deploy my serverless function. My deployment went through without any problem. However, I am encountering issues where AWS lambda console is looking for .mjs extension but the built ...
0
votes
1
answer
46
views
"Cannot find module '/var/task/lib/commonMiddleware' imported from /var/task/handlers/getAuction.js","code":"ERR_MODULE_NOT_FOUND" - Serverless Node
When I call my endpoint I get the error below:
Streaming new logs for function: "placeBid"
INIT_START Runtime - Version: nodejs:20.v42 Runtime Version ARN: arn:aws:lambda:sa-east-1::...
0
votes
0
answers
36
views
SQS FIFO Queue Integration with Lambda - Ordering Issue during Errors
We are having a NodeJs Lambda which is triggered by an SQS FIFO Queue. The SQS Queue Settings are as follows:
"sourceQueue": {
"Type": "AWS::SQS::Queue",
&...
0
votes
1
answer
36
views
Serverless Framework App Sync Plugin - Add AWS Managed Rule
I have tried to use the documentation for the App Sync plugin to add an AWS managed rule but I am unable to get it add the rule, instead I get the following error:
Error:
UPDATE_FAILED: GraphQlWaf (...
0
votes
1
answer
172
views
headers[headerName].trim is not a function
Here is my code:
import { CopyObjectCommand, S3Client } from '@aws-sdk/client-s3';
const s3Client = new S3Client({});
...
const params = {
Bucket: "destination_bucket", // Destination ...
0
votes
0
answers
2k
views
Serverless Framework - Compose Error: Cannot resolve ‘${param:xxx}’ variable at yyy
I hope someone can look at this and tell me what's wrong... been reading and beating my head against the wall all day long. This has got to be something super simple...
Here's my project definition:
...
0
votes
1
answer
51
views
Unable to create EFS using Serverless deploy
When I try to deploy my application with sls deploy --stage dev, it runs for several minutes and I can see most of the resources created in my AWS account, but it finally fails with:
✖ An error ...
4
votes
2
answers
916
views
Error: Cannot find module './xhr-sync-worker.js' when using jsdom in AWS Lambda with serverless-esbuild
I'm trying to use jsdom in an AWS Lambda function, bundled with serverless-esbuild. However, I'm encountering the following error:
[WARNING] "./xhr-sync-worker.js" should be marked as ...
0
votes
1
answer
102
views
AWS Serverless framework, stack deploy stuck "CREATE_IN_PROGRESS"
I have a problem while using the Serverless framework to deploy my stack to AWS.
I'm running this serverless deploy --stage tst --region eu-west-3 --verbose
Then 2 of my functions get stuck in "...
0
votes
1
answer
68
views
CORS error accessing file in S3 from Serverless Framework deployment
I have a project based on a template using Serverless Framework to deploy a react app served from an S3 bucket. The serverless deploy works fine, creates the CloudFormation stack, creates the S3 ...
0
votes
0
answers
264
views
Serverless v4 - auto update concerns
I want to make sure that Serverless only runs if it's at the same version, so I've set frameworkVersion: '4.1.11'. It was working fine for a while, but suddenly, in another day, when I running ...
0
votes
1
answer
144
views
Why is serverless including the stage name in the service's URL?
I have a project that uses httpApi (API Gateway V2). However, if I understand correctly, only version 1 of the API Gateway supports gzip compression.
Is that correct?
If so, this leaves me a bit ...
0
votes
1
answer
192
views
Serverless config for scheduled lambda function
I have a lambda function configured in serverless to run on a schedule as follows:
runDailyBatch:
handler: src/handlerRunDailyBatch.handler
timeout: 20
reservedConcurrency: 1
...
0
votes
1
answer
394
views
serverless framework: Internal Serverless Error
Prior to upgrading to serverless v4.0.30, I was getting "functionHandler is not defined" errors as in https://github.com/serverless/serverless/issues/12542. The workaround suggested in that ...
1
vote
2
answers
1k
views
How to resolve local env vars in Serverless Framework V4?
I've recently started a project using Serverless V4, but I'm not able to get the variables from my .env, I'm using serverless-offline as plugin, Node.js v21.7.1.
This is my serverless.yml
# "org&...
0
votes
0
answers
160
views
How to check compatibility between npm packages
How to check compatibility between packages? For example if I install serverless framework I get warning to upgrade package superagent. Now I want to know if I can upgrade the superagent package ...