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 SAM Model fails while creating API with Custom domain name using cross account hosted zone

Problem Statement My R53 Domain name and Hosted zone is in Account A. I want to create an API in Account B (Thru SAM Model) which will have a custom domain name declared in Account A. Here is my sample SAM Template AWSTemplateFormatVersion :…
3
votes
2 answers

AWS Serverless Lambda + Angular - TypeError: express is not a function

The application works fine in localhost:4200. But when I move to AWS via serverless Lambda, I get this error in cloudwatch logs. And I guess because of that I am getting 500 {"message": "Internal server error"} when I access the url I have no…
SK.
  • 1,390
  • 2
  • 28
  • 59
3
votes
4 answers

How is it possible to debug an AWS Lambda function from remote?

We are taking over a whole application from another company, and they have built the whole pipeline for deploying, but we still don't have access to it. What we know, that there's a lambda function is running triggered by certain SNS messages, and…
3
votes
0 answers

zappa docker returns FileNotFoundError No such file or directory: venv/lib/python3.6/site-packages

I am trying to build my Flask app using Zappa and docker ( Serverless with Aws Lambda ) Here is DockerFile: FROM lambci/lambda:build-python3.6 MAINTAINER "Bongo BD" RUN pip3 install -U pip zappa botocore awscli WORKDIR…
Selim Reza
  • 683
  • 1
  • 11
  • 31
3
votes
1 answer

Serverless Framework: CloudFormation Variable Import/Export

I'm using Serverless Framework and have multiple services which are attempting to use the same SQS queue. I can successfully make the resource in the first service but the second one is missing the lambda trigger when deployed to AWS. Hardcoding the…
3
votes
2 answers

Installing Linux Homebrew in AWS CodeBuild container

I have an AWS CodeBuild project, and I need to call the SAM CLI inside my CodeBuild container. In the build phase, I added a command to install Linux Homebrew, so that I can install the SAM CLI from the AWS Homebrew tap, per the…
user189198
3
votes
1 answer

Passing secrets to lambda during deployment stage (CodePipeline) with Serverless?

I have a CodePipeline with GitHub as a source, set up. I am trying to, without a success, pass a single secret parameter( in this case a Stripe secret key, currently defined in an .env file -> explaination down below ) to a specific Lambda during a…
3
votes
1 answer

Endpoint is not created after serverless deployment

I am trying to deploy a lambda function using serverless framework, the deployment is successful but i am not able to see the api gateway for the lambda function , and no endpoint is created after deployment , i am posting the code below…
Mandrek
  • 1,159
  • 6
  • 25
  • 55
3
votes
1 answer

How much safe it is to use Serverless approach for BFSI

I am new to serverless architecture. I am about to create a banking application. Is it a good idea to develop my whole system using 100% serverless architecture (using AWS Lambda) or should it be a hybrid combination of both Serverless and…
3
votes
3 answers

Is it good idea to use Thread.sleep in AWS lambda java

I am using AWS Lambda with Java programming language, due to some requirement I have to give sleep in my lambda function for 2-3 or in some cases upto 12 seconds, is it good idea to put Thread.sleep() in lambda function or it has any technical…
3
votes
1 answer

Unable to invoke a lambda from another lambda using aws serverless offline

I want to invoke a lambda from another lambda inside serverless-offline .I want to make a serverless offline web application.But I am getting this error: { UnknownError: Unsupported Media Type at Object.extractError…
3
votes
2 answers

Sam local Invoke lambda with local layer error "unable to import package"

When using 'Sam local invoke'to invoke a lambda locally , which relies on a layer built locally as well, the function cannot find the module which is part of the layer. I am getting the error "unable to import package" error while invoking my lambda…
3
votes
1 answer

requests.get() throws an exception in aws lambda

I'm not able to make HTTP calls from python based lambda function hosted on AWS and managed through Serverless framework. I've tried using botocore.vendored requests module but it shows deprecation warning and suggested to use the requests module…
Anil Kumar
  • 459
  • 6
  • 16
3
votes
1 answer

How dynamically add arn cognito to lambda?

I would like to add the cognito authorizer to my lambda function, but for this I need arn cognito, which is created in the stack coud formation(CognitoUserPool in my resources section). I'm using serverless framework. part of the serverless.yml…
3
votes
1 answer

Is the .serverless folder needed for trouble-free execution?

Will I need to push the .serverless folder to my repo and keep it updated to allow for a frictionless sls deployment or can I discard it at any time?