Questions tagged [amazon-lambda]

This tag is for questions about Amazon Web Services' "Lambda".

AWS Lambda lets you run code on the Amazon cloud without provisioning or managing servers. Lambda takes care of everything required to run and scale your uploaded code with high availability. You can set up your code to automatically trigger from other AWS services or call it directly from any web or mobile app, and pay only for the compute time used.

154 questions
2
votes
2 answers

Deploy hundreds of thousands of short lived jobs per day

I have a system that needs to deploy hundreds of thousands of short-lived jobs per day. Each job runs anywhere from a few seconds, to a couple of hours. Each job makes HTTP requests to external web servers, writes data to disk (anywhere from a few…
2
votes
3 answers

How can trigger S3 (different region ) event from lambda?

I can create lambda trigger using S3- same region. But while creating trigger using different region S3 getting error The bucket imebuckt must be in the same region as arn:aws:lambda:ap-south-1::function:ProcessImage. How can i fix it?
sanjayparmar
  • 633
  • 8
  • 19
2
votes
2 answers

How can I sync data or trigger a Lambda when Cognito user attributes change?

I'm trying to sync user data (name + some custom attributes) from an AWS Cognito user pool to a DynamoDB table. Cognito has a lot of triggers related to sign in / sign up but I haven't found any trigger that is fired when user attributes are…
Sampo
  • 261
  • 3
  • 9
2
votes
1 answer

Connect an AWS Lambda function triggered by API Gateway to Aurora Serverless MySQL database

I have an AWS Lambda function which is being successfully run via a HTTP request to an API Gateway. It returns a JSON response which I can see in my local web browser. Now I want it to gather data from an Aurora Serverless MySQL database which I…
Rob Fisher
  • 151
  • 5
2
votes
4 answers

I have SQS -> Lambda -> SNS (my messages end up in the dead letter queue)

I have a Lambda function that has a fixed concurrency of 1 that has an SQS trigger configured with a batchSize of 10. This Lambda function only publishes whatever it encounters to an SNS topic (the code is just a couple of lines). I'm using it to…
Julian
  • 545
  • 3
  • 6
  • 16
2
votes
1 answer

AWS API Gateway with Lambda and KeepAlive (persistent connections)

I'm a bit confused about Keep-Alive with AWS API Gateway. Is this something I need to configure? or maybe be careful with this setting? Because I will use API Gateway to execute Lambda functions, and because Lambda price depends on the execution…
Enrique
  • 143
  • 1
  • 5
2
votes
1 answer

Allow other AWS services to invoke Lambda using IAM

Is it possible to grant AWS services (e.g. API gateway, Secrets Manager) permission to invoke a Lambda function using only IAM roles? Normally this is done in the function's policy (resource-based policy), but I wonder if this is the only way. The…
2
votes
1 answer

When happens when I reach max concurrent Lambda functions

I have 200 jsonl (json-lines) files in an s3 bucket. Each file contains 100,000 JSONs to be written into a DynamoDB. I want to use Lambda to download the file from S3, and batch-write it into the DynamoDB (the files already perfectly match the table…
keithRozario
  • 146
  • 7
2
votes
1 answer

Configuring X-Ray in Lambda with AWS CloudFormation vs TracingConfig

We have an AWS Lambda (part of a broader AWS stack) that is configured using CloudFormation. It is being demanded that we implement/configure X-Ray on this Lambda. Company policy forbids us (on a role by role/account by account basis) from…
2
votes
1 answer

access to custom cloudwatch metrics using lambda+boto3?

I have a custom metrics, and I can get data from bash: aws cloudwatch get-metric-statistics --namespace System/Detail/Linux \ --metric-name LoadAverage1Min --start-time 2017-01-04T00:00:00 \ --end-time 2017-01-04T02:00:00 --period 60 --statistics…
Putnik
  • 2,217
  • 4
  • 27
  • 43
2
votes
1 answer

SNS -> Lambda: What happens when Lambda throttles

I have a lambda function subscribed to an SNS topic. I wonder, what will happen when that lambda function is throttled? Will SNS ensure that the message is delivered later? Will the message got dropped on the floor after x retries? Many thanks
Maleks
  • 121
  • 1
2
votes
2 answers

What is a practical difference between RPC and FaaS?

There seems to be a lot of hype around serverless computing these days and I try to understand what is the major difference between the remote procedure call framework? As far as I am concerned - it is the same thing. You call a method or function…
Dzh
  • 205
  • 2
  • 7
2
votes
1 answer

What's the fastest way of getting data into an AWS Lambda?

I have something I'll call a "microservice" running on AWS Lambda (using node.js). Basically it serves up condensed summaries drawn from a few hundred megabytes of binary blob. There are a lot of possible outputs and pre-generating all…
timday
  • 866
  • 1
  • 10
  • 24
2
votes
1 answer

AWS - lambda versions to different gateway stages?

Coming from a "classic/standard" development I'm used to have different deployment stages, e.g. staging and production, each one with its application version. AWS Lambda functions and API Gateway are freaking me out on how to handle versions and…
2
votes
1 answer

How can I search across CloudWatch log groups on AWS?

I have a number of lambda functions which run my serverless backend. Something somewhere is misbehaving, and I need to bring up/search all the logs from a particular time — from all log groups, not just a single one, or a single stream. Is there a…
1 2
3
10 11