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
7
votes
3 answers

Aws Aurora serverless v2 will not scale down to .5 ACU even though 0 connections

I'm running a v2 instance and from the documentation aws states you should only be paying for resources that you are actually using. I have an instance than is most of the time at 0 connections but it never scales down under 2 ACUs. See images below…
Ben Walton
  • 399
  • 3
  • 11
7
votes
1 answer

Serverless deprecation warning on .env files

I am using serverless framework to deploy react web application. I've set up a CI/CD pipeline for deployment. when serverless template gets executed I am receiving several deprecation warnings. Serverless: Deprecation warning: Detected ".env" files.…
Auto geek
  • 464
  • 1
  • 6
  • 21
7
votes
1 answer

AWS: Cannot perform more than one GSI creation or deletion in a single update

So I've been encountering this issue during serverless deployment: ServerlessError: An error occurred: MyDdbTable - Cannot perform more than one GSI creation or deletion in a single update. My DDB table configuration is this: Configuration in…
7
votes
2 answers

Error publishing ASP.NET Core Web API to AWS Serverless Lambda: 'AWSLambdaFullAccess' at 'policyArn' ... Member must have length greater than

For over a year I have been able to publish a ASP.NET Core Web API application using Visual Studio 2019 by selecting "Publish to AWS Lambda..." without incident (via a right click on the project). Until yesterday. Now it consistently fails to…
7
votes
2 answers

How to limit parallel execution of serverless lambda function

I am using AWS and using the serverless framework. My serverless lambda function gets triggered by event. Then I talk with Database and there is a limit in the number of connections I can open with DB. So I want to only run 5 lambda functions at a…
7
votes
3 answers

How do I get relative package.json dependencies to work with AWS's sam build command on Windows?

My goal is to share library code among several of our lambda functions using layers and be able to debug locally and run tests. npm is able to install dependencies from the local file system. When we change our library code, we want all users of…
Brandon
  • 695
  • 10
  • 29
7
votes
6 answers

AWS step-function mapState iterate over large payloads

I have a state-machine consisting of a first pre-process task that generates an array as output, which is used by a subsequent map state to loop over. The output array of the first task has gotten too big and the state-machine throws the error…
7
votes
3 answers

Disabling security for one method resource endpoint in API Gateway via AWS SAM template

I'm using AWS Serverless to create an API Gateway backed with Lambda functions. I have the following resources and methods defined: /projects -> GET (should require API key) -> OPTIONS (should not, since it is used for CORS preflight) I'm…
7
votes
1 answer

AWS Lambda + Serverless framework - Make website accessible from China

I'm trying to understand the various steps and requirements I need to go through in order to make our website available from China, both on the regulation side (Great Firewall) but also on the technical side (technical limitations and changes to…
7
votes
3 answers

Serverless Framework - What permissions do I need to use AWS SSM Parameter Store?

I'm opening this question because there seems to be no documentation on this, so I would like to provide the answer after much time wasted in trial and error. As background, the Serverless framework [allows loading both plaintext & SecureString…
7
votes
2 answers

Serve zip file from AWS Lambda

I need an endpoint (serverless) that serves a series of files compressed in a zip file. To do this I am using node-zip. This works locally to create a simple zip file with a flat file text: const fs = require('fs') const zip = new…
Purefan
  • 1,498
  • 24
  • 44
7
votes
1 answer

Create an API Gateway Proxy Resource using SAM

I have an apparently-simple requirement to create a proxy resource in SAM (Amazon's Serverless Application Model). So simple in fact that Amazon's documentation appears to leave this as an exercise to the reader! I want to create an AWS API Gateway…
7
votes
0 answers

AWS SAM- Can we deploy code for a single function without deploying the whole stack?

I am new to Serverless and AWS SAM. I have tried creating a template.yaml for my new lambda functions and api gateway's of my application and deployed to AWS using AWS SAM. It worked fine. But my question is for every deploy, we got to create new…
merla
  • 489
  • 1
  • 5
  • 12
7
votes
2 answers

aws sam publish/deploy flow

I'm not fully grasping the flow with publishing/deploying with sam. My biggest hiccup is that my sam template declares a AWS::Serverless::Function and the CodeUri parameter forces me to put in a s3 bucket url. I've seen examples where the CodeUri is…
TemporaryFix
  • 2,008
  • 3
  • 30
  • 54
7
votes
2 answers

SAM Serverless implicit API vs AWS::Serverless::Api

When configuring a SAM template and defining a AWS::Serverless::Function there is the Events param that accepts an Api type. Does this create an API Gateway resource? What is the difference between this event type and a standalone…
TemporaryFix
  • 2,008
  • 3
  • 30
  • 54