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

How to stop AWS API Gateway from base64 encoding binary responses?

I created an ASP.NET Core app using a project template in AWS Toolkit. I deployed it as AWS Lambda and noticed the binary files are being base64 encoded in the responses. I added the proper media types in the AWS API Gateway as shown below. The…
Tony_Henrich
  • 42,411
  • 75
  • 239
  • 374
4
votes
1 answer

ASP.NET Core AWS Serverless and CORS

I'm using Visual Studio to publish an ASP.NET Core 2.1 app to AWS Lambda (serverless). No matter what I've tried I cannot get CORS to work. All I really want to do is add the header access-control-allow-origin globally to my web app. Has anyone…
Joe Hakooz
  • 573
  • 1
  • 5
  • 18
4
votes
2 answers

cannot find module ./dist/server when deploying to AWS lambda

I had a simple Serverless website running in AWS lambda using node serverless deploy, I then added more stuff to the site and updated to the latest version of serverless, now when I deploy the site and visit the URL I get: {"message": "Internal…
Rilcon42
  • 9,584
  • 18
  • 83
  • 167
4
votes
0 answers

SAM give access to Cognito

I want to be able to call cognito functions through boto3 from my Lambda function in Python environment. What's the best way to give this type of access? I've done the following yaml but not sure if that's the best practice or I'm making the…
4
votes
1 answer

Sam build failed for nodejs 10.x runtime is not supported

i have ubuntu v18.10 , with aws cli Version: 0.14.2, i am not able to run sam build command , it gives error Building resource 'TestFunction' Build Failed Error: 'nodejs10.x' runtime is not supported
Swadeshi
  • 1,596
  • 21
  • 33
4
votes
0 answers

sam local invoke cannot find lambda layers image

I have defined a lambda layer in my Sam template, however Im having this issue. I havent found any related article that has this kind of error. 2019-09-01 16:10:14 Invoking app.lambda_handler (python3.7) 2019-09-01 16:10:14 Found credentials in…
XDProgrammer
  • 853
  • 2
  • 14
  • 31
4
votes
1 answer

Badge count option in amazon SNS

I need to get badge count in my application. I am using amazon SNS service. Here is my code AWS.config.update({ accessKeyId: 'XXXXXXX', secretAccessKey: 'XXXXXXX' }) AWS.config.update({ region: 'XXXXXXX' }) const sns = new AWS.SNS() const params…
4
votes
4 answers

Native Serverless vs Serverless Express

Right now, I am following a guide prepared from Serverless Stack Team. They are using React and lots of AWS features like lambda and API getaway. In order to practice it, I am re-writing one of my old Express example with the Serverless stack. I…
Kaan Taha Köken
  • 933
  • 3
  • 17
  • 37
4
votes
1 answer

MinimumSizeCompression is not working with serverless

I'm using the new serverless compression option using minimumCompressionSize = 1KB. Everything works fine on payloads > 1KB, yet payload <1KB are also compressed. It's like the minimumCompressionSize remains 0 whatever value I choose (See image…
Cyrine
  • 165
  • 1
  • 1
  • 7
4
votes
1 answer

What is trusted entities in resulting role definition of Lambda?

Below is the SAM template, Resources: HelloWorldFunction: Type: AWS::Serverless::Function Properties: CodeUri: hello-world/ Handler: app.LambdaHandler Runtime: nodejs8.10 Policies: - AWSLambdaExecute for which, below is…
overexchange
  • 15,768
  • 30
  • 152
  • 347
4
votes
1 answer

Cognito User Pool trying to send SMS when it's configured for email sending

I'm using the serverless framework in order to create a Cognito User Pool using the following CloudFormation configuration: Resources: CognitoUserPool: Type: AWS::Cognito::UserPool Properties: # Generate a name based on the stage …
4
votes
1 answer

AWS API Gateway Serverless validate request body and return error message in response

I am setting up an AWS API Gateway using Serverless. Ideally, nothing should be configured using the AWS console, only deploying with Serverless. I want to have it validate the bodies of requests coming in to the various Lambda functions that are…
rDev
  • 237
  • 2
  • 15
4
votes
2 answers

Angular Universal - AWS Lambda or EC2

would love to hear some opinions regarding hosting of an Angular Universal app. Question - EC2 vs AWS Lambda After finishing my application I initially created t2.micro linux instance to host my app, was happy to see that the site scores 97 in…
Ben
  • 793
  • 2
  • 13
  • 29
4
votes
2 answers

Serverless Framework - Get API Gateway URL for use in tests

I'm using the Serverless framework, and I want to be able to reference my API Gateway URL in my acceptance tests. My test environment is regularly destroyed and then recreated, so hardcoding a URL into the tests is not possible. I can see there are…
GWed
  • 15,167
  • 5
  • 62
  • 99
4
votes
2 answers

Serverless SNS filterPolicy does not put filter in place when subscription created

I'm using the following function definition: missing: handler: functions/eeegMissing.handler events: - sns: arn:aws:sns:us-west-2:xxx filterPolicy: type: - EPILOG_PAGE_DATA_RECEIVED The SNS topic…
Robel Robel Lingstuyl
  • 1,341
  • 1
  • 11
  • 28