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
1 answer

AWS sync to deploy only new or updated files to s3

I've written a Github actions script that takes files from a folder migrations and uploads it to s3. The problem with this pipeline is that all other files in the directory also get updated. How can I go about only updating new or updated…
3
votes
1 answer

Serverless: Serverless error property not found

I have this serverless.yaml service: BATCH-lambda-f provider: name: aws name: serverless-fac-${opt:stage,self:provider.stage} runtime: nodejs12.x stage: develop custom: credentials: ${file(./scripts/myScript.js)} in my myScript.js file I…
3
votes
1 answer

Upgrade Monolithic Laravel Application to Microservices

I am a newbie in microservices and done my research on the best practices and how to upgrade from monolithic. I need now concrete steps to move forward. I am looking to upgrade a monolithic Laravel project to Microservices. I have started to break…
3
votes
1 answer

AWS "sam deploy" function times out. Stack stays in "REVIEW_IN_PROGRESS" status

I'm trying to deploy a very simple function as shown in below template.yaml file. It creates a "samcli-deploy1629444458" changeset and it stays in "CREATE_IN_PROGRESS" status. When I check details of it there is no changes in it. There is nothing in…
Deniz
  • 1,575
  • 1
  • 16
  • 27
3
votes
3 answers

Unable to fetch TableName Serverless Framework: Missing required key 'TableName' in params

I followed this YouTube tutorial first to try and develop a serverless rest api using serverless framework. It gave an error of MissingRequiredParameter and initialised table name to undefined. To alleviate that, I found a similar code on GitHub but…
3
votes
1 answer

How to reference external aws resource with default in serverless framework?

I want to reference an external aws resource in serverless framework. However, if it does not exist, I want to fall back to a default value For example: functions: create: handler: posts.create events: - http: path:…
3
votes
2 answers

AWS Serverless ApiKey UsagePlan cannot find gateway api reference

I'm trying to build a serverless API that calls a lambda function with an ApiKey. AWS SDK in Visual Studio gives me an error stating that the reference is an invalid type. I have compared my serverless template to several other working examples, but…
mpalmer78
  • 370
  • 3
  • 15
3
votes
0 answers

Should I use Connection Pooling in AWS Lambda?

I recently switched over an API from an EC2 instance to API Gateway with lambda. I noticed that my CPU usage on the database then shot up quite rapidly. Below is an image of the active connections on the database, the red arrow is when I switched…
3
votes
1 answer

AWS can't import Python greenlet module

I created an AWS lambda with Python 3.6, which uses an external library not already in the AWS env. Once deployed with serverless, I call the handler and it gives me the error: START RequestId: 123456 Version: $LATEST Unable to import module…
Barbi
  • 139
  • 1
  • 11
3
votes
1 answer

Error while deploying NextJS app to AWS with serverless framework

When I tried to deploy my NextJS app to AWS with serverless framework. In my next JS app directory, I ran the command npx serverless and got the following error - $ npx serverless error: Error: Command failed with ENOENT: node_modules/.bin/next…
3
votes
0 answers

Strapi deployment on AWS Fargate (Serverless)-Aurora MySQL (Serverless)

I am trying to deploy the Strapi on AWS Fargate serverless environment through GitlabCI. Using AWS MySQL Aurora database for the DB integration. The database is up and running properly. When my CICD is trying to deploy it on Fargate, somehow it is…
3
votes
1 answer

EC2 re-creation on CDK deploy

All our stack resources run inside a VPC, so in order to access them we use a Bastion Host, a simple EC2 instance to create an SSH tunnel into the VPC. We then added our SSH keys to the host, but it seems the EC2 gets replaced by a new one from time…
Dries Hooghe
  • 123
  • 9
3
votes
1 answer

How do you set an alarm for the percentage of errors experienced by a lambda in AWS?

I'm trying to add a cloudwatch alarm which is triggered if the error rate experienced by a lambda passes a certain percentage threshold. I've seen a few places that suggest taking the lambda error count and the lambda invocation count and using the…
3
votes
2 answers

Error: Unknown object type "asyncfunction"

I have and issue with my serverless deployment to AWS. Im fairly new to it so I'm unsure as to what the issue is. I have found a few solutions online but none have worked so any ideas would be greatly accepted. also I know there is a very similar…
mick1996
  • 516
  • 9
  • 31
3
votes
1 answer

tagging serverless log group for a lambda

I am creating a lambda function by referring the ink https://www.serverless.com/framework/docs/providers/aws/guide/serverless.yml/ The lambda gets created and in the stack I don't see any log group. If I invoke the lambda a log group automatically…