Questions tagged [serverless]

Serverless computing is a cloud computing execution model in which the cloud provider dynamically manages the allocation of machine resources. Pricing is based on the actual amount of resources consumed by an application, rather than on pre-purchased units of capacity. It is a form of utility computing.

Filter by
Sorted by
Tagged with
0 votes
1 answer
13 views

importing fs inside a next.js serverless function gives error

In Next.js 14 I'm trying to import 'fs' inside a serverless function: import fs from "fs"; import path from 'path'; export async function POST(req: Request) { const promptTemplate = fs....
Casiano's user avatar
  • 421
0 votes
0 answers
25 views

Automatic update stats option in Azure Synapse Serverless pool SQL database

We have noticed that auto create and update statistics are enabled on some Azure Synapse serverless databases, while disabled on others. We were able to successfully enable auto create statistics ...
SQLPRODDBA's user avatar
0 votes
0 answers
12 views

error loading @sparticuz/chromium-min from s3

I'm trying to use pupeteer in a lamda function with @sparticuz/chromium-min hosting the brotli files in an S3 bucket... I create the S3 bucket via serverless framework and then upload the .tar file ...
Eb3us's user avatar
  • 23
0 votes
0 answers
21 views

API to exchange Google-Id-Token to Cognito-OAuth-Bearer-Token

I got lost, when I was trying to exchange a google id token, for a AWS Cognito. What I want to achieve: User logs into his/her google account on an android device, token is sent to my api* (AWS API ...
andre's user avatar
  • 1,628
0 votes
1 answer
25 views

How do i resolve module not found errors in mongodb after node upgrade to v18?

I'm getting these warnings after upgrading the node version from 16 to 18, can anyone please tell me what is the fix for these warnings? Do i need to add these dependencies to project? Package.json ...
prashanthh's user avatar
1 vote
1 answer
23 views

Writing tests for serverless framework using Typescript and Jest is throwing "Cannot find module" error

I am building a serverless API on AWS using serverless framework. I have set up the project using typescript template. The default project comes with a simple hello handler/ lambda function. Now I am ...
Wai Yan Hein's user avatar
  • 13.9k
0 votes
0 answers
26 views

What service to use to deploy an Angular 17 app with SSR enabled on AWS?

What is the most convenient way to deploy an app SSR app on AWS? I saw that people are using AWS Amplify, Serverless and AWS Elastic Beanstalk, but what is the best to do for a large Angular 17 app ...
achillezz's user avatar
0 votes
0 answers
13 views

Serverless deployment serverless-plugin-split-stacks plugin doesn't decrease root resources in any configuration

When changing the configuration for the serverless-plugin-split-stacks plugin, the number of resources in the root stack stays the same. Since CloudFormation has a limit of maximum 500 resources, I ...
Kristóf Vass's user avatar
-2 votes
0 answers
46 views

Next API routes vs Next server actions vs Vercel edge functions vs Supabase edge functions [closed]

I'm building a web app with Vercel and Supabase, and I see now that there are a lot of options for where to run backend/business logic. In the past, it would have either run on a monolith server or a ...
Kale's user avatar
  • 209
0 votes
0 answers
33 views

Changing nestedStackCount in serverless-plugin-split-stacks

Since CloudFormation has a limit of 500 resources, we are splitting our stack with the serverless-plugin-split-stacks plugin. Recently, we have run out of the resources this way as well. The ...
Kristóf Vass's user avatar
1 vote
1 answer
76 views
+100

Sagemaker serverless ValidationError: oversize body

I have an image classification model stored in s3 location. If I deploy the model as real-time inference, then I am able to predict any image size, however, if I deploy the model as serverless then I ...
sid8491's user avatar
  • 6,632
0 votes
0 answers
8 views

Can you use AJAX in an AWS Lambda/Serverless web page

In the past I've been able to be very creative using AJAX in ASP.Net websites, particularly for Intranet Applications. I've been exploring AWS Lambda/Serverless websites which have a great cost ...
Miguelito's user avatar
  • 312
-1 votes
0 answers
22 views

Authenticating SAML response received in AWS Lambda

I am implementing SAML protocol in JavaScript and I am using Microsoft as an IDP. I am able to send the SAML authentication request to the IDP by creating a login function which redirects it to the ...
Mohit Gupta's user avatar
0 votes
0 answers
36 views

Nextjs project where the client gets SSE from a Node application. Shared database or not?

I'm working on a web application where SEO is crucial, and there's a need for live data using Server-Sent Events (SSE). I've chosen Next.js because i'm well versed with react but due to serverless ...
prof chaos's user avatar
1 vote
0 answers
18 views

SSL Validation Failed during AWS SAM deploy command

I have created a Serverless project using one of the AWS SAM template. I have builded the project using command sam build. When I tried to deploy the project using command sam deploy --guided I am ...
Vishnu priya's user avatar
-1 votes
1 answer
30 views

What is the purpose of an sqs in a stepfunction?

So I'm trying to wrap my head around what the purpose of having an sqs in a stepfunction is. Lets say there's a lambda that sends messages to an queue, and then another lambda that consumes the ...
leed38's user avatar
  • 314
-1 votes
0 answers
20 views

Installing Openwhisk

Is there anyone know how I can install openwhisk.I tried multiple sources no one work it with me. It got many errors that I couldn’t fix. So I was thinking that it could be that I am following wrong ...
Areej Almousa's user avatar
2 votes
1 answer
94 views

How to increase timeout limit on Vercel Serverless functions

I have an API endpoint on a NextJS project that needs longer than 60s to run. I'm on a pro Vercel plan but for some reason cannot get the timeout limit to increase. At the endpoint itself I've tried ...
Eric Hasegawa's user avatar
0 votes
0 answers
9 views

sls deploy to AWS serverless API gateway through bash CICD pipeline does not fail for errors

I have a serverless-compose.yml configuration file with 4 stacks, and when I run sls deploy in my CI/CD pipeline (bash runner), sometimes one of the stacks fail to deploy for various reasons. However, ...
Sriram's user avatar
  • 1
0 votes
0 answers
29 views

Not able to use env in severless yml?

env flag during sls deploy command but was getting Error: Cannot resolve serverless.yml: Variables resolution errored with: - Cannot resolve variable at "provider.stackName": Value not ...
Nitin k's user avatar
  • 17
0 votes
0 answers
10 views

Bref:cli - After upgrade from 1.7 to 2.1, comands output data twice

I am updating our bref/bref library from 1.7 to 2.1 and I see that the way the CLI tool is used has changed between versions. Here is my bref command under 1.7. It calls a symfony command and makes an ...
Aaryn's user avatar
  • 1,593
0 votes
0 answers
13 views

Looking for a functions' hub, and I can call functions with REST and RPC without importing libraries and without redeploy

For a large group of developers, working on different projects, I'm looking for a tool that allows developers to code functions and push them into a large functions hub, with a description of the ...
abman's user avatar
  • 1
0 votes
0 answers
39 views

Vercel storage for serverless functions python

I am trying to explore serverless functions with the twitter api and I am working with vercel. My first project is really simple, just consisting in a python script with the function code and a json ...
Videgain's user avatar
  • 135
0 votes
0 answers
29 views

Trying to connect my app to Neon DB and it gives me authentication error even setting everything right

error screenshot I am trying to connect my app to Neon DB with .env key DATABASE_URL and it gives me password authentication error and when created another account it gives me no such a user. Please ...
Mahmoud Abdelsamie's user avatar
0 votes
0 answers
7 views

NextRequest client ip and geo city fails in Google Cloud Run

I am using Nextjs in my project I want to use NextRequest in a Middleware to obtain client ip and geo.city Next Documentation says "This information is provided by your hosting platform" ...
José Luis's user avatar
0 votes
0 answers
20 views

Why haven't tracking tools like Hotjar and others worked on Vercel function + Nuxt 3?

I am a newbie and I am trying to add various trackers like Google Analytics, Hotjar, Matomo, and others to my Nuxt 3 project. However, they are not working. I deploy it to the Vercel serverless. I ...
Tou Darek's user avatar
0 votes
0 answers
38 views

'Publish failed' for deploying new Zip Files to Azure Linux Functions App (restart required before this works)

I have to restart my Azure Linux Functions App before I can redeploy using Zip File deploys. I have read that this is due to file locks, but the fixes I've attempted to use do not work. Hopefully ...
Matt Rowles's user avatar
  • 7,810
2 votes
1 answer
25 views

Serverless: Parameter ScheduleExpression is not valid

While trying to do serverless deploy after adding cron expression for running the lambda for every 2mins for the project which I created through aws-nodejs-typescript-ts template, I'm getting this ...
Amjad sibili's user avatar
0 votes
0 answers
65 views

Synapse Serverless SQL parallel queries performance killer?

We have moved our EDW to Synapse Serverless SQL. The data is in a delta lake, which is accessed by views, to make use of the partitioning on the tables. However we are experiencing "blocking"...
Søren Kongstad's user avatar
0 votes
0 answers
31 views

Serverless monorepo in nestjs how to use and package shared utils in a monorepo?

I have a monorepo I'm trying to build up to develop and deploy lambdas in nestjs, I'm having alot of problem's with my shared utils that I want to share between my lambdas. Currently I'm using ...
Brenen Hatch's user avatar
0 votes
0 answers
17 views

Why is OIDC-provider stuck in Deleting state in Cloudformation in AWS?

I have a stack where a change to the Cloudformation template caused the OIDC-provider that was created in the stack to be deleted. When updating the stack, it seems that the stack never leaves the ...
nillls's user avatar
  • 625
0 votes
0 answers
19 views

Can I put a profile name in the Serverless .yml file?

I have multiple profiles in my c:\Users\myuser.aws\credentials file (for example, my personal account, and two client accounts). I understand that I can deploy using "serverless" as follows: ...
NealWalters's user avatar
  • 17.4k
0 votes
1 answer
31 views

Cannot resolve variable described into serverless.yml and into serverless.com

I have some vars defined into a serverless service and correctly inherited into my stage parameters (at least, seems to be) serverless deploy --aws-s3-accelerate --verbose But when trying to deploy, ...
MathKimRobin's user avatar
  • 1,292
-1 votes
1 answer
27 views

AWS Lambda function returning error : Lambda function could not be function using sls deploy with Node Js

Error: UPDATE_FAILED: HelloLambdaFunction (AWS::Lambda::Function) Resource handler returned message: "Lambda function shop-manager-admin-api-dev-hello could not be found" HandlerErrorCode: ...
Dylan's user avatar
  • 1
0 votes
0 answers
57 views

Serverless (framework) deployment "randomly" deploys broken functions, module not found

Background We are running a larger application on top of the Serverless framework and keep growing our modules and user-base. All our backend code is sitting in a mono-repo and is compiled from 29 ...
Matthias Steinbauer's user avatar
0 votes
1 answer
31 views

Lambda returning, 403 Status Code Few times a day on HEAD Operation

I have developed an lambda which fetch the metadata of object stored in S3 bucket and save it to another bucket used to analysis purpose. In morning, When the Lambda Cold Starts, there is series of ...
Roronoa Zoro's user avatar
0 votes
1 answer
61 views

Function creation failed because the function already exists - Creating Lambda function through serverless.yml Github Action

How I can override/replace the existing Lambda Function which already exists? Maybe I have to pass some parameters in my serverless.yml file to replace my existing lambda function while creating with ...
Sujeet Kumar's user avatar
  • 1,832
0 votes
1 answer
83 views

Using synapse spark db as a source in copy activity

I have a synapse spark db using the delta format. When I try to create a linked service using either Synapse or Sql using its sql end point it does not allow it. Has any one come across that? I need ...
Nuwan Gebalanage's user avatar
0 votes
1 answer
59 views

How to switch database in Redshift serverless

I have created redshift serverless cluster and the database name called 'dev' created by default. I have created different databases and each databases have external schema s3_external_schema which is ...
user13929072's user avatar
0 votes
0 answers
34 views

Copy Binaries In Lambda /tmp Folder While Deploying The Lambda

I am trying to run a headless Chrome service on lambda using NodeJS. My code works fine but it is complaining about the chrome binaries as the lambda does not have them. If I try to ship the binaries ...
planet_hunter's user avatar
0 votes
0 answers
29 views

vercel serveless function and nextjs Api routes

When deploying nextjs on vercel, the codes of the two function points of vercel's serveless function and nextjs's Api Routes seem to be the same again. Should we deploy it as Vercel serveless function ...
Evan's user avatar
  • 1
0 votes
1 answer
46 views

serverless framework python 3.11 errors cannot import name 'Sequence' from 'collections'

it looks like 3.11 is just new on serverless framework 3.36.0 I got this error with pathlib here: INIT_START Runtime Version: python:3.11.v16 Runtime Version ARN: arn:aws:lambda:us-east-2::runtime:...
martin's user avatar
  • 902
0 votes
0 answers
33 views

Can we use serverless-step-functions plugin with aws-go-mod serverless framework's tempalte

I have initialised a serverless application using aws-go-mod template. I want to define step functions with lambda functions associated with it. If we use nodejs we can simply use the plugin ...
Athavan T's user avatar
  • 346
0 votes
0 answers
13 views

Manage transactions in Aurora Serverless V2 while using Apache DB Utils query runner and Hikari Config as data source

I am using Aurora Serverless V2 Postgres edition having 1 writer and 1 reader. I am using Apache DB utils query runner and Hikari as data source to update data. I am able to write data using cluster ...
itisha's user avatar
  • 47
0 votes
0 answers
24 views

How to refer to imported API gateway while creating lambda event via serverless

I'm importing details of existing api gateway by using the plugin plugins/serverless-import-apigateway Below is my code. service: name-${env:Environment} frameworkVersion: "3" plugins:...
Nitin k's user avatar
  • 105
1 vote
1 answer
61 views

How can we warm more than one lambda server with a cronjob?

People often say that using event bridge cronjob to keep lambda warm only will keep 1 lambda running and requests that cannot be handled by it will experience cold starts. But, Open Next offers the ...
Vitor Figueredo Marques's user avatar
0 votes
1 answer
43 views

ERROR: has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource

I made an app, I hosted it with Serverless AWS... I am new to AWS and I don't know why I am getting this error: "has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is ...
palalele's user avatar
0 votes
0 answers
19 views

In Vercel, Can I control max serverless function count created?

In Vercel document functions-created-per-deployment, max serverless functions count limited 12. Problem is I built my nextjs project's backend DB with mariadb which has pool limitation 30.(AWS RDS ...
seung hwan Son's user avatar
0 votes
0 answers
34 views

CORS error when calling AWS API Gateway from React application

I'm working on a React application that communicates with a backend API hosted on AWS API Gateway. Even after setting up CORS on the AWS side, I'm still encountering CORS errors when trying to make a ...
Rodrigo Burgos's user avatar
0 votes
0 answers
10 views

Why do programming languages need to be adapted to be deployed on serverless

Laravel and php can be deployed on a traditional linux server, but to host it on serverless (AWS or Vercel) you need to use something like bref, why is that and what is bref exactly doing here. ...
Yusuf Bouzekri's user avatar

1
2 3 4 5
71