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
2 answers

How to reference secondary indexes in serverless.yml?

I'm very unclear on how references or variables work with CloudFormation. Currently my iAmRole in my serverless.yml looks like: iamRoleStatements: - Effect: Allow Action: - dynamodb:DescribeTable - dynamodb:Query …
colemars
  • 979
  • 3
  • 12
  • 25
3
votes
1 answer

Dependencies not being injected on NestJS with Serverless and AWS

Everyone, I'm trying to setup my first NestJS application. It is backed by Serverless on AWS. I created a simple Controller that has a Service as a dependency. When I hit the endpoint with my HTTP Client, the object that should contain the Service…
Victor Ferreira
  • 6,151
  • 13
  • 64
  • 120
3
votes
1 answer

List objects in an AWS S3 bucket (deployed using Serverless)

I seem to be getting permission issues and can't find any SO answer to resolve this. My Lambda function is simple (note -- I am using Babel to transpile): import AWS from "aws-sdk"; import { success, failure} from "./libs/response-lib"; export…
Jed
  • 494
  • 1
  • 6
  • 15
3
votes
1 answer

Invoke api running on localhost from aws lambda in nodejs

I am running a api on http://localhost:80/api/test, I want to invoke this api from lambda function but I am not sure what plugin or anything I should use to access same.The reason for for doing so is, I want to do testing lambda and api in…
3
votes
1 answer

API Name is always the Stack Name in SAM

I am using the AWS CLI to deploy a SAM template. The AWS Api Name is being set to the same as the CloudFormation Stack Name. I expected the Api to be called "Users" based on this template content below. Is it possible to set the API name? SAM…
3
votes
2 answers

Using serverless-mocha-plugin to test dynamic endpoint

I am creating an API application in NodeJS using the Serverless framework. I have installed the serverless-mocha-plugin and am trying to create some unit tests for my functions. In my serverless.yml file, I have the following…
M.S.
  • 893
  • 1
  • 7
  • 12
3
votes
0 answers

Deploying aws lamda with seed.run generates No file matches include / exclude patterns

I have followed the https://serverless-stack.com/ tutorial and have split my code into multiple services. Now when I deploy it with seed.run I can only deploy the database services (tabels). The first phase of the deployment. When I get to the…
Tony
  • 167
  • 1
  • 4
  • 12
3
votes
2 answers

"Unable to parse API definition because of a malformed integration at path /price. (Service: AmazonApiGateway; Status Code: 400;

The following code I put for x-amazon-apigateway-integration, please let me know if I am missing something. Thanks x-amazon-apigateway-integration: httpMethod: post type: aws uri: Fn::Sub: -…
Mayank
  • 325
  • 1
  • 4
  • 13
3
votes
1 answer

How do you call the AWS Lamda from AWS API Gateway in Scala?

I have created an instance of AWS API Gateway for AWS Lambda. How can I handle the HTTP methods in the Lamda function? My sample code is: class ApiGatewayHandler extends RequestHandler[Request, ApiGatewayResponse] { def handleRequest(input:…
newbie
  • 456
  • 1
  • 6
  • 17
3
votes
0 answers

.NET Core | IdentityServer | AWS | Serverless | Lambda

Before everything: I checked familar questions like: access AWS API gateway using access token from identityserver AWS Lambda - Building serverless API using .NET Core And this…
3
votes
1 answer

AWS SAM managed policy for SSM get parameter

Is there any managed policy similar to DynamoDBReadPolicy for the ssm:GetParameter* permission for a Lambda function? I'm using aws-sam-cli and trying to follow this, but when I try to fetch the parameters when using sam local start-api, I get the…
3
votes
1 answer

Difference in request body in aws api gateway test and curl

I'm trying to add a POST HTTP method to my AWS API Gateway. I'm using SAM framework with Python. I find that there is a difference in the "body" of the response when it is generated from my desktop (curl or postman) and the AWS API Gateway…
3
votes
2 answers

Cannot upgrade AWS SAM CLI from 0.2.8 to 0.6.1

I cannot upgrade AWS SAM CLI from 0.2.8 to 0.6.1. I followed the intructions mentionned here: https://github.com/awslabs/aws-sam-cli/blob/develop/docs/installation.rst $ sam -version A newer version of the AWS SAM CLI is available! Your version: …
Nicosoft
  • 31
  • 1
  • 4
3
votes
1 answer

How to add AWS user permissions using serverless?

I have created a user in the AWS console with access only to the Lambda service. My question is, using the serverless framework, in my serverless.yaml, is it possible to add S3 Full access to my user and possibly any other service? Thank…
3
votes
0 answers

AWS Lambda Function throws Read timed out. (read timeout=60) when invoking

I created a Lambda function on AWS Lambda from an AWS C9 environment. The function runs well from local, but after deploying it, it times out on remote. This is the error: Error: HTTPSConnectionPool(host='lambda.us-east-2.amazonaws.com', port=443):…
Danf
  • 1,409
  • 2
  • 21
  • 39