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

Express.js app serverless, using Lambda or Functions - a good idea?

Disclaimer: I admit this is more of a broad-ish best practice question, rather then a specific programming issue, however, I believe the SO bunch is the best audience for it. I am aware of this similar question (Should I be using Express.js in a…
marko-36
  • 1,309
  • 3
  • 23
  • 38
16
votes
3 answers

What's the difference between AWS SAM (Serverless Application Model) and serverless framework?

We are working on project, we are tring to build serverless application in nodejs. I come terms across AWS SAM and Serverless. Which is best for implementing serverless application
Sagar
  • 4,473
  • 3
  • 32
  • 37
15
votes
5 answers

What's the use cases of Streams and Firehose?

I am working on an application that will read and analyze the logs of payment transactions. I know I will use Kinesis Analytics as per my requirements, which takes the input from the Data Streams and Firehose. But I am having trouble deciding which…
15
votes
1 answer

Python not finding module when running AWS sam local invoke

I have just started using AWS serverless using SAM and have run into the problem below: SAM invoke can't seem to find a python module that my lambda handler is importing but I can otherwise import that module. The structure of my project…
Willeman
  • 720
  • 10
  • 24
14
votes
4 answers

Fix CORS "Response to preflight..." header not present with AWS API gateway and amplify

I've been struggling so long with the error below. I've tried so many tutorials and stackoverflow answers and none of the solutions fixes my problem. Access to XMLHttpRequest at 'https://xxx' from origin 'http://localhost:3000' has been…
13
votes
1 answer

Disable SLS_DEBUG=* in the Serverless Framework

When using the serverless framework (on a Mac OS X High Sierra), the SLS_DEBUG environmental variable was set to enable verbose debug info export SLS_DEBUG=* Question: Now how do you disable it (other than moving to a new terminal)? export…
12
votes
1 answer

Specify multiple API stages and Lambda Aliases in SAM template defining a single AWS::Serverless::Function

What I am aiming for I'm trying to write a (single) SAM template for obtaining a Lambda function triggered by Api Gateway events. I want to have multiple API Stages (say "dev", "testing", "prod") and I want each of them to be mapped onto a Lambda…
12
votes
2 answers

Getting following error on serverless.yaml :can not read a block mapping entry; a multiline key may not be an implicit key

I am trying to deploy the lambda function along with the serverless.yml file to AWS, but it throw below error The following is the function defined in the YAML file functions: s3-thumbnail-generator: handler:handler.s3_thumbnail_generator …
Hari
  • 151
  • 1
  • 2
  • 5
11
votes
1 answer

Deploying Laravel (laravel-mix) application on AWS Serverless platform

I'm trying to deploy my Laravel application on AWS serverless platform, I'm using dynamic imports and code splitting in my laravel-mix to compile the assets, to execute this I followed the steps in the documentation of bref package I installed the…
Nitish Kumar
  • 6,054
  • 21
  • 82
  • 148
11
votes
1 answer

Serverless - Running an Express instance in a Lambda function, good or bad?

While learning the Serverless Framework I came across several tutorials showing how to run an Express instance in a Lambda. This seems to me like an overkill and against the purpose of Lambda functions. The approach usually involves running an…
11
votes
1 answer

Serverless API gateway transforming request into base64

I have a serverless app which uploads files to s3 (via POST request) and serves them (via GET request) I am using serverless-apigw-binary and serverless-apigwy-binary plugins to allow me to return binary data in the form of an image. In order to…
Ben Flowers
  • 1,434
  • 7
  • 21
  • 49
10
votes
2 answers

Authorization header requires 'Credential' parameter. Authorization header requires 'Signature' parameter

I have delivered aws serverless (LAmbda, API GW & DynamoDB), but during the developers test they have faced the following error with their 'Postman' utility: { "message": "Authorization header requires 'Credential' parameter. …
Haytham
  • 135
  • 1
  • 1
  • 8
10
votes
1 answer

AWS CLI returning Unknown options : awsvpcConfiguration

When i run the below command on aws-cli its throws an error 'returning Unknown options : awsvpcConfiguration' e.g aws ecs run-task --cluster test-ecs-cluster --task-definition testtask --launch-type FARGATE --network-configuration…
Arockia Antony
  • 101
  • 1
  • 4
10
votes
2 answers

AWS SAM - Enforcing Request Validation in API Gateway Method by SAM Template

I am working on a SAM application having a lambda function with API Gateway as source of event. API Endpoint is a POST Method requiring a set of parameters in request body. API Gateway provides us the capability of validating request body by…
10
votes
4 answers

IntelliJ + AWS Toolkit + Serverless App: "Must be able to locate the handler in the project in order to deploy to Lambda"

I have created a new Serverless project in IntelliJ using a HelloWorld style template app. This app I managed to build, deploy and run remotely in my AWS account. I even managed to integrate it with API gateway to make it accessible through the…
AHL
  • 738
  • 3
  • 11
  • 35
1
2
3
81 82