Questions tagged [aws-lambda]

AWS Lambda is a compute service that lets you run code without the overhead of managing servers. (Not to be confused with the [lambda] tag, which instead refers to a type of function).

AWS Lambda is a cloud offering from Amazon Web Services (AWS). AWS Lambda is a serverless compute service that runs code in response to events and automatically manages the underlying infrastructure for you.

Resources

Tutorial

30649 questions
8
votes
3 answers

AWS API Gateway + Cognito User Pool Authorizer + Lambda - Which HTTP-headers and permissions do I need to set?

I have problems getting the authorization of my API on AWS for a Cognito User Pool via HTTP headers (without AWS API Gateway SDK) to work. My setup: On AWS: A REST API implemented on AWS Lambda (deployed via Serverless framework), exposed via API…
thomers
  • 2,603
  • 4
  • 29
  • 50
8
votes
1 answer

Passing serverless API Gateway URL as a parameter for a Lambda function in the same stack

I started building a JAM app using AWS Lambda, AWS API Gateway and serverless, as well as another vendors API. This vendor API is invoked by a Lambda function, and requires a callback URL to be passed to receive some data once it has done its…
8
votes
3 answers

How "Real-Time" DynamoDB stream is?

We are experimenting with a new serverless solution where external provider writes to DynamoDB, DynamoDB Stream reacts to a new write event, and triggers AWS Lambda function which propagates changes down the road? So far it works well, however,…
8
votes
1 answer

Can/will AWS API Gateway -> Lambda performance be improved?

Has anyone found a solution to API Gateway latency issues? With a simple function testing API Gateway -> Lambda interaction, I regularly see cold starts in the 2.5s range, and once "warmed," response times in the 900ms - 1.1s range are typical. I…
SexxLuthor
  • 4,460
  • 3
  • 18
  • 25
8
votes
3 answers

MoonMail Lambda architecture with Serverless

I've been looking into this project because the idea of having the whole system be a collection of Lambda functions seems very appealing. As a matter of fact, a few years ago I wrote some software that does pretty much the same as MoonMail does and…
Julian
  • 8,808
  • 8
  • 51
  • 90
8
votes
6 answers

Alexa Skill - How to Retrieve Slot Value in Lambda Function

I am developing an Alexa Skill with one Intent that includes a Slot with several possible values. My slot is defined with "name" : "Channel", "type" : "LIST_OF_CHANNELS", and values iqram ingrid phil clyde How do I retrieve the uttered slot…
Ingrid
  • 161
  • 1
  • 2
  • 8
8
votes
2 answers

Create Lambda permission in serverless

I'm running into an issue with Serverless v1.5 (latest version currently available at the time of writing) I've to add permission to the lambda function and I'm trying to achieve this by creating a CF template and running along with the deploy of…
Mazzy
  • 13,354
  • 43
  • 126
  • 207
8
votes
1 answer

Read and extract huge zip file from AWS S3 with AWS Lambda

I am working on data management application where client can upload zip file(approx 250 MB) with multiple text files(approx 1500 MB) on AWS S3. But due to limited memory of aws lamda (max 1536MB size) I am able to extract zip file of (50 MB) with…
abdulbarik
  • 6,101
  • 5
  • 38
  • 59
8
votes
3 answers

Set or modify an AWS Lambda environment variable with Python boto3

i want to set or modify an environment variable in my lambda script. I need to save a value for the next call of my script. For exemple i create an environment variable with the aws lambda console and don't set value. After that i try this : import…
8
votes
2 answers

How to attach a managed policy to a lambda function in serverless framework

How can I attach a managed policy to a lambda function? I tried: provider: name: aws role: arn:aws:iam::aws:policy/AmazonCognitoReadOnly But this resulted in the following error: An error occurred while provisioning your stack:…
8
votes
4 answers

How to Invoke AWS step function using API gateway?

According to Amazon's documentation, step function can be invoked using HTTP API. Step Functions can be accessed and used with the Step Functions console, the AWS SDKs, or an HTTP API. I tried to search the detailed information, but can't seem…
C.Lee
  • 10,451
  • 9
  • 31
  • 46
8
votes
3 answers

Alexa Skill ARN - The remote endpoint could not be called, or the response it returned was invalid

I've created a simple Lambda function to call a webpage, this works fine when I test it from the functions page however when trying to create a skill to call this function I end up with a "The remote endpoint could not be called, or the response it…
ca8msm
  • 1,170
  • 3
  • 15
  • 37
8
votes
5 answers

Converting AWS Lambda function to use promises?

I am writing a simple HTTP 'ping' function that is being periodically executed using AWS Lambda. It uses four asynchronous functions: http.get, S3.getObject, S3.putObject, and nodemailer.sendMail. Each seems to have a slightly different callback…
GuruJ
  • 348
  • 2
  • 4
  • 9
8
votes
1 answer

How to scan between date range using Lambda and DynamoDB?

I'm attempting to scan between a date range using a Node Lambda function. I have the data being scanned correctly, but I can't seem to get the date expression to work correctly. var AWS = require('aws-sdk'); var dynamodb = new…
Tom Nolan
  • 1,916
  • 4
  • 32
  • 51
8
votes
2 answers

Integrating Google Guice in AWS Lambda

I'm trying to integrate Google Guice in AWS Lambda but for some reasons, injection is not working well. It give me null whenever i try to call Handler Code: public class FirstLamdba implements RequestHandler{ private…
user1030128
  • 411
  • 9
  • 23
1 2 3
99
100