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

ConflictException: Base path already exists for this domain name in Serverless AWS

I had build the applicatoin using the AWS lambda with NodeJS environement. and For the deployement puposes I am using the Serverless Framework. Now When I am trying to deploy my service to the AWS using the Serverless framework with Nodejs template.…
2
votes
1 answer

How can i Run Web socket In Apache Flink Serverless Java

I have a Java Program to run in Apache flink in AWS i want to run real time communication through web socket how can i integrate serverless web socket in Apache flink Java ??? Thanks You
2
votes
1 answer

Install serverless framework to execute nodejs application in aws lambda

While testing the lambda function in api gateway i get below error message. Let me give some some background here that what I'm doing. I've created a stack which is creating apigateway, lambda and dynamo db. The project has serverless.yml consisting…
2
votes
3 answers

Define lambda authorizer response format using serverless framework

According to this AWS documentation page covering authorizers for AWS API Gateway it is possible to define authorizer as lambda function returning a boolean value in isAuthorized response field to allow/deny the API request. However after numerous…
Stan Reduta
  • 3,292
  • 5
  • 31
  • 55
2
votes
1 answer

My .zip file size is 45mb but it's showing the error of large file size on AWS layer

I am using the serverless framework for the deployment. It's throwing the following error while we are deploying it on the AWS. But my zip file size is 45mb and unzipped size is 130mb on local. Serverless Error…
2
votes
1 answer

Cannot add Auth property of AWS::Serverless::Api resource conditionally

I'm attempting to add the Auth property to an AWS::Serverless::Api resource conditionally using an Fn::If conditional function like below so that the ResourcePolicy is only added when I deploy to production. AWSTemplateFormatVersion:…
2
votes
1 answer

Aws-Lambda export default function does not work

I am practicing aws lambda function and serverless yml. I am using typescript and javascript es6. I testing my serverless yml file by offline plugins. When I export the lambda function and call it in serverless yml file like this: handler:…
Krisna
  • 2,854
  • 2
  • 24
  • 66
2
votes
2 answers

How to set up a time scheduled serverless python job on AWS?

I'd like to peform the following tasks on a regular basis (e.g. every day at 6AM) using AWS: get new set of data using API. This dataset is updated on a daily basis. run a python script that would process the obtained dataset by the means of…
2
votes
2 answers

AWS Cognito created by Serverless doesn't send confirmation emails

I'm working on an serverless authentication and I've got a problem with sending confirmation email. When I create a user by AWS Console, the user is created and email with confirmation code is sent. But when I do a request to API, user is created in…
2
votes
1 answer

AWS - How to enable CORS for Lambda Function

I'm trying to enable CORS for a Lambda function written in Go and below are my configuration and code. Here's my SAM config... AuthBindApi: Type: AWS::Serverless::Api Properties: StageName: Prod Cors: AllowOrigin:…
j3d
  • 9,492
  • 22
  • 88
  • 172
2
votes
1 answer

Loading module from was blocked because of a disallowed MIME type (“application/json”)

I have implemented Angular Universal in my project and I want it to deploy to Serverless environment in AWS but when I running the app local I am getting below error. I followed below link for implementing Angular…
2
votes
1 answer

Specify a $default API Gateway stage via CloudFormation template?

I'm using AWS SAM. From the docs, I see "Stage names can contain only alphanumeric characters, hyphens, and underscores, or be $default." But when I try: Resources: ExpressApi: Type: AWS::Serverless::Api Properties: StageName:…
Wintermute
  • 2,973
  • 4
  • 32
  • 52
2
votes
1 answer

How to use AWS SAM CLI Local HttpAPI with JWT Bearer token Auth offline?

I would like to use AWS SAM JWT HttpApi Auth offline Based on this AWS example, I decided to create the following YAML file. AWSTemplateFormatVersion: '2010-09-09' Transform: AWS::Serverless-2016-10-31 Resources: HelloWorldFunction: Type:…
2
votes
2 answers

Serverless Domain Manager Error: Unable to fetch information about uat-api.mydomain.com

i want to use custom domain name for my lambda api. i found plugin serverless-domain-manager. what i did is install plugin , create custom domain name in aws/ api gateway :uat-api.mydomain.com create a dns record with point to my custom-domain…
Seifolah
  • 341
  • 3
  • 14
2
votes
1 answer

Setting up AWS credentials

I am having problems configuring my AWS credentials on Serverless using my terminal. Once I place: serverless config credentials --provider aws --key xx --secret xxx --profile serverless-admin2 After that the system responds "setting up aws..." and…