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
6
votes
5 answers

Windows is not recognizing serverless as internal or external command

I wanted to install serverless in my windows 7 machine.My npm version is 6.1.0. I used the command npm install -g serverless C:\Users\ADMIN\AppData\Roaming\npm\serverless ->…
Subhendu Mahanta
  • 961
  • 1
  • 18
  • 44
6
votes
3 answers

Using List of IAM Policy Document Objects as AWS::Serverless::Function Policies

According to the documentation for AWS::Serverless::Function in the Serverless Application Model, it is possible to specify a list of IAM Policy Document Objects (PDO) for the Policies property of a Resource. However, the AWS Toolkit for Visual…
5
votes
1 answer

Vercel "This Serverless Function has crashed" with simple GraphQL request from SvelteKit app

I am getting frequent, seemingly random errors on initial page load. I think the problem has to do with Vercel Serverless Functions. I regularly get this error on the website itself: Full log from Vercel: [GET]…
Koen
  • 324
  • 2
  • 10
5
votes
2 answers

Unable to load env files from custom path in Serverless framework

I am unable to load env files located in a custom path using serverless framework. The env files are kept in a folder 'config/environment' in the project and the files available are .env .env.dev .env.qa .env.prod The contents of Serverless.yml…
Adarsh
  • 177
  • 1
  • 13
5
votes
1 answer

AWS Cloudformation stuck in UPDATE_ROLLBACK_FAILED

I deploy my AWS Lambdas via AWS Serverless Application Model (SAM). One of my Lambdas uses Numpy which I reference via a 3rd party layer from Klayers by @keithRozario. I was using Klayers-python38-numpy:16 but discovered that it was deprecated after…
hugo
  • 1,175
  • 1
  • 11
  • 25
5
votes
2 answers

aws lambda function using serverless template of asp.net core

I don't have enough knowledge of aws but my company asked me to do a job which I guess is what AWS Lambda does perfectly. The requirement is I have to create a service that has an endpoint that needs to be called twice a day. The approach I followed…
5
votes
1 answer

AWS Lambda + Angular web app throwing "Error: Cannot find module '@vendia/serverless-express'"

I am trying to deploy angular web app on AWS serverless Lambda following the tutorial https://medium.com/better-programming/getting-started-with-serverless-angular-universal-on-aws-lambda-8754bcc4dc19 It was working fine till last week, but started…
5
votes
7 answers

The requested URL returned error: 403, AWS Server less: Amplify app to CodeCommit

Trying to host a web application (html) using server-less approach on AWS Amplify connecting to the AWS CodeCommit repository(where the html code version history is maintained). Save and Deploy app on Amplify is failing in 'Build' step and is…
5
votes
5 answers

AWS SAM: Build Failed Error: Docker is unreachable. Docker needs to be running to build inside a container

Im running AWS SAM and using sam build --use-container then get the following error. Starting Build inside a container Building function 'SamTutorialFunction Build Failed Error: Docker is unreachable. Docker needs to be running to build inside a…
Ordep81
  • 967
  • 4
  • 13
  • 18
5
votes
1 answer

Error Publishing .net core 3.0 AWS Serverless Application - Ambiguous project name 'bootstrap'."

I created a new .Net Core 3.0 application as per the instructions in https://aws.amazon.com/blogs/developer/net-core-3-0-on-lambda-with-aws-lambdas-custom-runtime/ However, as soon as I added a code library project dependency, the publish…
5
votes
3 answers

How to avoid giving `iam:CreateRole` permission when using existing S3 bucket to trigger Lambda function?

I am trying to deploy an AWS Lambda function that gets triggered when an AVRO file is written to an existing S3 bucket. My serverless.yml configuration is as follows: service: braze-lambdas provider: name: aws runtime: python3.7 region:…
5
votes
1 answer

execute serverless deploy with aws role

I am trying to deploy a simple lambda funtcion with the serverless framework. My IAM user doesn't have the necessary permissions to run cloudformation: User: arn:aws:iam::xxx:user/xxx is not authorized to perform: cloudformation:DescribeStacks on…
5
votes
2 answers

Why deployed serverless functions not displayed in list of lambda functions in AWS console?

I deployed the serverless functions using serverless deploy functions to aws. They are working fine and I can see them if I try to list the deployed function as shown below. $ serverless deploy list functions Serverless: Listing functions and their…
Sanket Patel
  • 541
  • 6
  • 12
5
votes
2 answers

How to pass a role to cli command "aws cloudformation deploy" or "sam deploy"?

I am creating a cloudformation stack using a SAM template and the CLI. I have successfully done this using an account that gets all the required permissions from policies directly attached to it. It's poor security practice to give this account all…
5
votes
1 answer

Set Request Validator of API Gateway by serverless

I want to set Request Validator of API Gateway by serverless. I tried two different settings for the Request Validator. But, both methods have failed. I have summarized what I did, so please let me know if there is something wrong. I write the API…