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

How to configure Cloudwatch events to trigger on IAM API calls?

So I'm having trouble setting up Cloudwatch events to trigger a Lambda function. In the current scenario I want to trigger a Lambda when anyone/thing changes anything in IAM. Currently I have a global Cloudtrail in N. Virginia which is logging all…
1
vote
0 answers

Very slow imagemagick convert call when using AWS Lambda

I've got a relatively simple composite action that I'm carrying out with imagemagick on AWS Lambda. Why does it often take more than a minute to complete? This composites four smaller images "behind" a larger background that has transparent…
jaygooby
  • 314
  • 1
  • 2
  • 13
1
vote
1 answer

Store request body of route without hitting web server in AWS

Let's say I have a website: mysite.com, running on AWS, served from some EC2 instances behind an Application Load Balancer. The load balancer terminates SSL through an ACM certificate. I need to route incoming requests to a URL (example:…
1
vote
1 answer

How can I deploy a large application to Lambda using Serverless, bypassing or not reacking CloudFormation resource limit

I am using Serverless(https://github.com/serverless/serverless) to deploy my functions to AWS Lambda. However, Now I started getting the error: Template format error: Number of resources, 217, is greater than maximum allowed, 200 After some…
1
vote
1 answer

DynamoDB Streams with Lambda, how to process related messages in order?

I want to use DynamoDB Streams + AWS Lambda to process chat messages. Messages regarding the same conversation user_idX:user_idY (a room) must be processed in order. Global ordering is not important. Assuming that I feed DynamoDB in the correct…
1
vote
1 answer

AWS Scheduled task with data

I've currently got a function in lambda that when invoked sends a message to a user who invoked it. 2 days later I would like to send a follow up message. All the code to send the actual messaging works fine. I'm using Lambda due to the auto-scaling…
TommyBs
  • 179
  • 3
  • 10
1
vote
1 answer

Invoke Lambda function with delay

I have this schema to receive http requests and do some processing on files under a Windows Server EC2 instance. API Gateway -> Lambda -> EC2 (Node.js + Express) For now, there are a few requests per day, so the instance is stopped until a request…
1
vote
1 answer

Is not authorized to perform an operation while I have the full access of an aws service

I have created a simple nodejs script to handle the files in S3, and I want it to be executed on lambda. My admin has added me in IAM with full access to lambda and S3. However, when I select the "S3 execution Role" as my role, AWS banned this…
RandomEli
  • 121
  • 6
1
vote
1 answer

AWS: API gateway 502 error randomly with Runtime segmentation faults

I am using AWS and have an api which is called via API gateway which calls a node.js lambda function. Very often but randomly I get 502 responses but when I immediately try again with the exact same request I get a normal response. So I decided to…
PilotPatel
  • 11
  • 1
1
vote
0 answers

Creating a custom CloudWatch Event to monitor every new commit for GitHub repository instead of CodeCommit repo state change

Could you please assist me in understanding if it is possible to create a custom CloudWatch Event to monitor every new commit for GitHub repositories instead of CodeCommit repo state changes? It has always seemed to me that cloudwatch events are…
1
vote
1 answer

How do you set a self-destruct or maximum uptime in AWS?

Situation We have a sandbox AWS account for trying things out. It is not for production, purely just for playing around with all the toys that AWS provide. We want to encourage everyone to explore and learn. We have many AWS accounts in our estate,…
1
vote
1 answer

CloudFront does not seem to invoke lambda@edge function

I have a CloudFront distribution. The origin is an S3 bucket that uses OAI. I have created a lambda@edge function following directions from…
1
vote
1 answer

What is causing BadRequestException when calling the ExecuteStatement operation on Aurora Serverless db

I have a lambda function that retrieves records from AWS Aurora Serverless db. Now I thought of adding api gateway to trigger the lambda function but I get this error Connect an AWS Lambda function triggered by API Gateway to Aurora Serverless MySQL…
1
vote
0 answers

Does freezing the cgroup wait for TCP send buffers to be flushed?

What guarantees are there for flushing the TCP send buffers, if any, when the freezer subsystem freezes a cgroup? Consider the following scenario: Server A, which runs in a cgroup, sends data to Server B via TCP. The TCP socket is configured to use…
1
vote
0 answers

Is there a 1:1 correspondence between CodeDeploy applications and a Lambda?

We're investigating CodeDeploy for automating deployments of a service that is comprised of: Multiple Lambdas, with some triggered by SQS queues and others accepting HTTP requests via API Gateway API Gateway SQS queues The question I have is…