3,097 questions
1
vote
0
answers
130
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
0
answers
22
views
Serverless Build Config not recognized
I am having trouble with my SLS deployment. I am trying to setup a ESbuild config as follow:
...
stages:
default:
resolvers:
aws-serverless-account:
type: aws
region: ${env:...
0
votes
1
answer
83
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
51
views
DigitalOcean node.js function invoke returns Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@google-cloud/documentai'
I am trying to create a DO serverless function.
Everything is functional on my local, but after I deploy the function an try to run it on DO, I get the ERR_MODULE_NOT_FOUND error, for most of the ...
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
0
answers
33
views
Serverless framework attach api gateway to existing Usage Plan
Is there any way to associate an API Gateway managed by serverless to an existing usage plan? We have a usage plan that used to access several services, so we want to manage it separately, instead of ...
0
votes
1
answer
96
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 ...
0
votes
0
answers
158
views
Serverless v4 ESBuild packaging ignoring non-js files
I have just upgraded to Serverless V4, and removed serverless-bundle as recommended.
Have configured esbuild with a loader:
loader:{
'.html': 'copy',
'.node': 'copy',
...
-3
votes
3
answers
161
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 ...
-1
votes
1
answer
117
views
Starting a new project with `serverless` command is not working for serverless framework
After the upgrade to V4, I am able to successfully login using the sls login in CLI. But issue comes when I run the command serverless and opt for a template. It downloads the template but unable to ...
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
...
2
votes
0
answers
201
views
AWS Lambda Internal Server Error when Deploying FastAPI with Serverless Framework - Unable to Import FastAPI
I deployed a FastAPI endpoint using AWS Lambda with the Serverless Framework. I tested the Lambda function locally, and it runs perfectly, but when I deploy it and hit the URL, I receive an "...
1
vote
0
answers
37
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 ...
1
vote
1
answer
334
views
Nestjs not injecting service to controller
I'm migrating a backend to serverless and want to keep my current nestjs setup for now, but I'm having an issue that prevents me to run usecases/services (they're the same I just call them differently ...
0
votes
1
answer
77
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’...