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

How can I automate the end-to-end testing of my serverless web app?

So my app stack looks like this in prod: Backend: AWS API Gateway + Lambda + DynamoDB + ElastiCache(redis) Backend - algo: Long running process - dockerized Java app running on ECS (Fargate) Frontend: Angular app, served from S3 I'd…
3
votes
1 answer

Cannot reference an API in Outputs section from AWS::ApiGateway::Model resource

I'm able to define and deploy my API Gateway + Lambda stack using Cloudformation / Serverless Application Model, an want to add a model to my API. I've created the model in YAML, but it appears to be unable to reference the API defined in the…
3
votes
1 answer

How to assign tags on an AWS API Gateway deployment stage using Terraform

I am using Hashicorp Terraform to define an AWS API Gateway to hit a Lambda function. I have a requirement that I need to tag my AWS resources with a particular tag so that costs can be tracked. Terraform seems to allow this for most resources.…
3
votes
1 answer

How do you manage updates/rollbacks and multiples versions with AppSync and serverless?

I'm using AppSync with Lambdas. To do so, I use the serverless framework. I have few questions about the way you manage your serverless project with it's dev/test/prod versions. I currently use the --stage option like sls deploy -s test to have…
Tom
  • 785
  • 10
  • 26
3
votes
1 answer

Serverless variable from external file nested property

I have serverless yml and a config file config file app: { port: 3000, db: { connectionString: 'xxxxx' }, lambdaDeploy:{ stage : "DEV", region : "es-west-1" } Trying to use these variables in yml like below yml provider: name:…
Md. Parvez Alam
  • 4,326
  • 5
  • 48
  • 108
2
votes
0 answers

python runtime mismatch when trying to deploy a fastAPI app to vercel

i'm trying to deploy the app using vercel cli, but when i do it says my function has an invalid python version. now i checked with python --version and it appears my python is 3.11 and up to date, so where's the error coming from? here's the…
Lee Skies
  • 31
  • 6
2
votes
3 answers

Serverless authorizer request does not provide methodArn, or any information about the calling lambda

I am having issues getting the methodArn from a request object in an authorizer lambda I have defined. I am using serverless with golang. Here is a redacted setup of the code that I have. main.go - the authorizer handler function func…
bloo
  • 1,416
  • 2
  • 13
  • 19
2
votes
0 answers

How to pass a list as an environment variable to an AWS Lambda function from a JSON config file?

I have a JSON file that is going to contain a number of different lists per client that I am deploying for. These lists are going to serve as container overrides for an ECS task that my Lambda function will be invoking. The JSON config file would…
2
votes
4 answers

Sending blob image from Angular to ExpressJS

I'm trying to send a blob image, but I'm getting Error: Unexpected end of form using multer with Serverless Framework. From console.log My understanding is I have to append it to FormData before sending it in the body, but I haven't been able to…
user6680
  • 79
  • 6
  • 34
  • 78
2
votes
0 answers

Does AWSSecretsManagerRotationPolicy policy apply to all secrets?

I'm trying to use an AWS lambda function (deployed with SAM) to rotate a secret. Reading AWSSecretsManagerRotationPolicy description says: Gives permission to rotate a secret in AWS Secrets Manager. Source Based on that, this is applied to a…
2
votes
3 answers

AWS Snapstart Java throws Unable to load AWS credentials from any provider in the chain

I am tried enabling the snapstart for my lambda function which just uses a simple java AWS SDK to connect to just a put a message to the queue. Without the snapstart the code works fine, however when its enabled, I get this error Error while…
2
votes
0 answers

Serverless Express Lambda async invoke not working

I have a basic Serverless Express app in a lambda, with a route set to async true. I want to trigger this route asynchronously from a different application, and expect it to run in the background without having to wait for the response. My full…
kvnam
  • 1,285
  • 2
  • 19
  • 34
2
votes
0 answers

AWS-Serverless template reference Globals environment variables within the template

I am trying to create a AWS SAM template.yaml to create a lambda accessing a DynamoDB table resource and define the IAM permissions of this lambda. I want the table name to be in an environment variable and I want it to be different depending on the…
georanto
  • 111
  • 11
2
votes
1 answer

Do I need VPC for a 100% Serverless Architecture on AWS?

Please, consider a system (composed of many microservices and BFFs) that: Each Platform (many microservices) and Customer Journey (BFF) has its own AWS Account (as part of an organization - Control Tower). We might have 20 - 30 AWS Accounts. AWS…
jfbaro
  • 301
  • 2
  • 10
2
votes
1 answer

Facing problem to set service name from env variable in serverless.yml file after upgrading to latest version

I am trying to set the serverless service name from the env file. Before deploying serverless, I have set the value of ECR_NAME as export ECR_NAME=$(echo $CI_ENVIRONMENT_SLUG | awk -v srch="-" -v repl="" '{ gsub(srch,repl,$0); print $0 }') Then I…