Questions tagged [aws-serverless]

AWS Serverless implementation with API Gateway, Lambda functions, CloudFormation and SAM (Serverless Application Model).

Serverless computing allows you to build and run applications and services without thinking about servers. Serverless applications don't require you to provision, scale, and manage any servers.

You can build them for nearly any type of application or backend service, and everything required to run and scale your application with high availability is handled for you.

Links

  1. Serverless Computing and Applications

  2. AWS Serverless Application Repository

  3. Serverless AWS Functions documentation

1217 questions
2
votes
1 answer

How to pass and retrieve multiple parameters in lambda function?

I'm currently developing a REST API using the serverless framework with python and dynamoDB. I would like to know how I can pass and retrieve parameters in my lambda function. My configuration on serverless.xml looks like: getNearestConvenios: …
2
votes
0 answers

Concurrent Writes to the same S3 file - Updates from multiple s3 buckets to target S3 bucket file using Lambda S3 Trigger

My use-case is to design a system to keep reading events (content) from Source S3 Buckets and merge with the file present in the Target S3 Bucket continuously. For instance, Bucket-1(A) | Bucket-2(B) | Bucket-3(Target) A: Any Update ---> Trigger…
2
votes
1 answer

Can't access mongodb atlas database when deployed in serverless

I deployed my application in aws ec2 instance and I setup the vpc peering and ip whitelist correctly and everything works fine. The app is running and I was able to access my mongodb atlas database. Then I tried to deploy my app in serverless I…
2
votes
0 answers

How to design a DynamoDB index that has 4 filters in the UI

I am trying to design an index that can respond to my access pattern. In the UI, I have one collection that can be filtered by 4 attributes: customer date type creditor I was reading the documentation and Alex Debrie's book, and I was inclined to…
2
votes
1 answer

AWS Lambda with XRay Incorrect Response Code, No Stack Trace, No Function Tracing

I'm currently trying to set up XRay for a Lambda API. I'm unable to get a stack trace or statusCode that isn't 200. Im hitting an endpoint that simply throws a 500 error. The idea here would be that any errors in my code would bubble up to a final…
2
votes
1 answer

Serverless Response Templates w/ Lambda Integration

I've read the docs for serverless and AWS but I'm just not getting the response templates. I have a lambda function that calls another module and that module will return an object with an info and possibly an error property. If the error property…
2
votes
0 answers

What is the best way to store user information with DynamoDB and Lambda?

I am trying to make my first web app with was Lambda, Cognito, Amplify, API Gateway, and DynamoDB. I followed the tutorial aws made, and it went well. Now I need advice on how to store user information for my custom app (which will be written in…
2
votes
1 answer

serverless deploy lambda@edge with specific dependency

I want to deploy function for Converting images to WebP from CloudFront as mentioned here But I want to use serverless framework and I have created following serverless.yml & my handler.js service: viewer-image-request plugins: -…
2
votes
2 answers

Your access has been denied by S3, please make sure your request credentials have permission to GetObject for awsserverlessrepo

Lambda uses "Browse Serviceless Application Repository" to create an application when creating a function and shows no S3 permissions. Here is how my Lambda creates a function to deploy the application: enter image description here The S3 area is in…
Erwin
  • 57
  • 2
  • 7
2
votes
0 answers

AWS Serverless: Processing a JMS feed that originates outside of AWS

Goal: understand options for processing a JMS feed using AWS serverless principles when the JMS feed originates outside of AWS. All of the JMS subscribe examples I've seen on AWS assume the JMS producers are writing to SQS or AmazonMQ. The JMS…
2
votes
1 answer

AWS Lambda dynamic concurrency limit based on if other lambdas are running

The problem: Lambda A - Makes 1 requests to third party API Lambda B - Makes 10 requests to third party API I want a limit of 15 requests to the third party API at once Ideal scenario: If Lambda B is running, 5 Lambda A can run concurrently.…
Jarvix
  • 23
  • 5
2
votes
1 answer

How to start serverless-offline in mocha test before function

I'd like to use serverless-offline in some mocha tests. Something like: describe('run some tests', function() { before(function(done) { // Start serverless-offline here return done(); }); after(function(done) { // Stop…
vy218
  • 707
  • 1
  • 8
  • 15
2
votes
1 answer

How to add path parameter to AWS::Serverless::Function

I have a cloudformation template that generates an API. I want one of the endpoints to have a path parameter. However, I don't understand how I can achieve this with AWS::Serverless::Function. Here is my current function: GetItems: Type:…
2
votes
1 answer

how to download serverless.yml from exist lambda function

I'm aws-lambda newbie. I need to use npm to deploy on my local pc. I already created lambda function and uploaded layers by using the console. I need all of lambda files such as serverless.yml template file.... but I don't know how to download…
2
votes
1 answer

How to get latest Layer version with serverless framework for AWS Lambda

I'm trying to get latest Layer version with serverless framework by using serverless-latest-layer-version plugin. That plugin itself can get latest version of Layer but problem is whenever I made new deployment for both layers and function, layer…