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.

Serverless computing still requires servers. The name "serverless computing" is used because the server management and capacity planning decisions are completely hidden from the developer or operator. Serverless code can be used in conjunction with code deployed in traditional styles, such as microservices. Alternatively, applications can be written to be purely serverless and use no provisioned services at all.

3486 questions
1
vote
0 answers

How to use serverless-openapi-documentation with serverless Typescript template?

The issue is the following: I aim to document a AWS serverless API using Serverless framework with the open API plugin for API documentation. The issue I am facing is that the Serverless configuration created on serverless.ts file do not have a…
pafede2
  • 1,626
  • 4
  • 23
  • 40
1
vote
1 answer

Move user Table aws cognito to MongoDB

i have learned about aws cognito and lambda. Usually, aws cognito store them datas to aws dynamoDB. But, in my project i use mongoDB. so, How to store data from aws cognito to mongoDB?
Fathi
  • 85
  • 1
  • 6
1
vote
2 answers

How to use multi custom domains for aws serverles project?

Is it possible to have lambda function with different custom domain than others; In servlerless lambda project, I need to have one lambda to use different custom domain than other lambdas. for example userNotification --> dev.xyz.com/users all…
1
vote
1 answer

AWS Lambda function only 54mb and getting size limit error

I am trying to update a lambda function that is only 54mb and i get the size limit exceeded error. There is only one version of it so not clear as to why this would happen. Thanks in advance! ... Serverless: Packaging function:…
Ryan Carville
  • 355
  • 7
  • 15
1
vote
1 answer

Lambda timeout after 29s, unable to find request ID in CloudWatch logs

I'm new to AWS and Node so I really appreciate everyone's suggestion on this one. Recently in my system, something strange happened. Sometimes (~20 times/ month), a lambda request got timeout. It's just a simple request in middleware for…
1
vote
1 answer

AWS Serverless: Force parallel lambda execution based on request or HTTP API parameters

Is there a way to force AWS to execute a Lambda request coming from an API Gateway resource in a certain execution environment? We're in a use-case where we use one codebase with various models that are 100-300mb, so on their own small enough to fit…
T. Altena
  • 752
  • 4
  • 15
1
vote
1 answer

Access a Lambda function inside a private subnet using API gateway

I have a VPC containing 2 Lambda functions A & B: A is on 2 public subnets B is on 2 private subnets with a RDS Database instance The VPC itself has Internet access via the NAT instance. I need a 3rd party API to communicate with B, but B is in a…
Fares
  • 893
  • 1
  • 11
  • 24
1
vote
1 answer

Next.js with or without express

I have recently begun migrating a project made with create-react-app to next.js, and I am not sure how I should migrate the backend of it. I currently have an express server as my backend, but I see in next.js there are performance advantages by…
isaacholt100
  • 388
  • 3
  • 11
1
vote
0 answers

'publish' property in serverless config

In legacy AWS Lambda node.js project there is a publish property in serverless.yml. service: name: service-name publish: false I didn't pay attention to it before, but after upgrading serverless to v.2.0.0 I get the warning on serverless…
sashko
  • 1,632
  • 1
  • 13
  • 20
1
vote
1 answer

Incompatible versions of aws-sam-cli and jmespath while deploying serverless app

While I try to deploy a serverless application on AWS Lambda, I incur in the following error: STDERR: ERROR: aws-sam-cli 0.46.2 has requirement jmespath~=0.9.5, but you'll have jmespath 0.9.4 which is incompatible. ERROR: Exception: …
Alessandro Ceccarelli
  • 1,775
  • 5
  • 21
  • 41
1
vote
1 answer

AWS API GATEWAY from origin 'http://localhost:8080' has been blocked by CORS policy

I’m trying to deploy an API to be used in Front End. it's work when testing the API alone but it's return CORS error when integrate in Vue app where the error return is: Access to XMLHttpRequest at 'https://APIDomain/development/pin' from origin…
Khairul Habib
  • 452
  • 1
  • 12
  • 29
1
vote
1 answer

AWS Lambda requesting another lambda behind private API gateway - DNS resolve not working

I'd like a lambda (transformer) to call another lambda (source) without going through lambda.invoke, rather just requesting it by going through the (private) api gateway one more time. The background is that this allows a more straightforward…
Michel Müller
  • 5,535
  • 3
  • 31
  • 49
1
vote
1 answer

Missed comma between flow collection entries when using Fn::GetAtt in YAML

I'm trying to add an event stream for DynamoDB in YAML, DynamoDB table is a variable that changes based on the environment it gets deployed to, I'm using Fn::GetAtt to determine TABLE_NAME but it's giving me an exception. Is the syntax right? Is…
Arar
  • 1,926
  • 5
  • 29
  • 47
1
vote
0 answers

API Gateway: Lambda Integration content-disposition header to interpolate values from $context

I am trying to set the filename of a CSV which is downloaded from API gateway, the file name is fine if I hardcode it and set the Content-Disposition header in my serverless.yaml but I need to set the filename dynamically based on the current date…
1
vote
1 answer

Serverless Error: "An Error Occurred: fifo already exsists"

I'm trying to deploy with servereless and keep getting " An error occurred: DeadLetterQueueDlq - sms-retry-dlq-v1.fifo already exists." However, sms-retry-dlq-v1.fifo is only called that time. And DeadLetterQueueDlq is only called 1 time as well. Is…
1 2 3
99
100