Questions tagged [aws-lambda]

AWS Lambda is part of Amazon Web Services (AWS). Lambda is a serverless platform allowing developers to write functions which are scaled, monitored and managed by Amazon. Use this tag to describe questions which use Lambda or Lambda@Edge.

AWS Lambda is part of Amazon Web Services (AWS). Lambda is a serverless platform allowing developers to write functions which are scaled, monitored and managed by Amazon. Use this tag to describe questions which use Lambda or Lambda@Edge.

Further Reading

47 questions
15
votes
4 answers

How to performance test AWS Lambda functions?

AWS Lambda cost is dependent on the time a function runs, and to some extent on memory footprint. Having functions that finish faster, and take up less memory can save quite a lot of money. Especially when such a function is executed often. How can…
Evgeny Zislis
  • 9,023
  • 5
  • 39
  • 72
13
votes
2 answers

Is it possible to trigger an AWS Lambda function directly from CloudWatch alarm?

Currently, for triggering a lambda function in response to a CloudWatch alarm, I need to route the alarm via SNS, like this: AWS CloudWatch Alarm --> Send to a topic in SNS --> SNS topic triggers the lambda function So, is there a way I can do it…
Dawny33
  • 2,816
  • 3
  • 24
  • 62
12
votes
2 answers

How to storing encrypted secrets in code for a serverless.com project?

With serverless.com, the easiest way to expose a secret to an AWS Lambda function is to store it in the serverless.yml file (encrypted with KMS, for example). But committing encrypted secrets to Git is not the best thing in the world. Requires code…
Assaf Lavie
  • 1,251
  • 11
  • 17
11
votes
3 answers

How do I upload my zipped lambda code into AWS Lambda?

So I've read through the docs at: https://docs.aws.amazon.com/lambda/latest/dg/lambda-python-how-to-create-deployment-package.html I've created the zip file, how / where do I actually upload / publish this zip file into AWS?
Chris Stryczynski
  • 483
  • 1
  • 3
  • 15
8
votes
2 answers

Placing an AWS Lambda in a public subnet

Is it possible to place an aws lambda in a public subnet and thus avoid paying for NAT? The docs state the following If your Lambda function needs Internet access, do not attach it to a public subnet or to a private subnet without Internet access.…
Ulad Kasach
  • 181
  • 1
  • 4
7
votes
1 answer

Are there any best practices and/or tools for 'nohup' monitoring?

I use nohup for starting Ansible playbooks inside the Master which is spawned via boto3 from AWS Lambda. This playbook creates multiple workers, make them do some tasks, and terminates them. So, I want to design/build a reliable monitoring system…
Dawny33
  • 2,816
  • 3
  • 24
  • 62
7
votes
1 answer

How can I deploy an AWS Lambda function from Jenkins?

I have a simple Lambda function that I'm trying to deploy through Jenkins - public String handleRequest(String input, Context context) { String output = ""; if (input.isEmpty()) { output = "No input provided"; }…
6
votes
3 answers

DynamoDB vs RDS for a counter store?

I have multiple lambda functions, which a file passes through for processing, and I want to store the status of each computation in a counter, for better logging and monitoring. Current plan is to log it like this: file-name Lambda1 Lambda2…
Dawny33
  • 2,816
  • 3
  • 24
  • 62
5
votes
0 answers

How Can I create layers for a lambda using Terraform?

The docs only seem to give me the option to reference existing layers. I want to make the layer for my lambda in my terraform code rather than through the console but can't see any option to do this in the docs?
doug
  • 523
  • 2
  • 6
  • 15
4
votes
1 answer

How to "inject" AWS Lambda code into a CloudFormation?

I'm exercising an idea of not using S3 bucket to refer to the code of a lambda function. The usual example of a lambda CloudFormation code might look like: MyLambda: Type: AWS::Lambda::Function Properties: FunctionName:…
4
votes
3 answers

Challenges of using AWS Lambda chain

Context: I have a pipeline of 6 lambda functions (chained together), triggered by an SNS notification which is generated whenever a file lands on S3. This pipeline essentially takes the file(few GBs), filters it (Spark cluster is created to run the…
obaid
  • 41
  • 2
4
votes
2 answers

LambdaA -> delay mins -> lambdaB

I need to launch a LambdaA function and after X minutes I need to launch a LambdaB function with parameters passed from LamdaA I have testing the following: APIGW > LambdaA > SQS with delay > SQS can't trigger lambda functions APIGW > LambdaA > SNS…
RuBiCK
  • 305
  • 1
  • 13
3
votes
1 answer

Undeploy or deactivate an AWS Lambda

Is there a way to undeploy or deactivate an AWS Lambda or must I either implement it myself or delete and later redeploy it to achieve the desired state? What I would like is similar to just "undeploying it" so that it can be deployed again later.
3
votes
1 answer

How granular in purpose should FaaS functions be?

For clarification, when I say "FaaS" I am referring to serverless offerings such as AWS Lambda and Google Cloud Functions. I have a specific case in mind that I'll describe but I would very much like to hear about any guiding principles in this…
swigganicks
  • 133
  • 5
3
votes
1 answer

What is the best Windows Infrastructure to run Adobe After Effects like AWS Lambda?

I have an app where we allow users to create videos by choosing an AE template and modifying the text, images, etc. We run AE on a windows server which renders the final video. For other scenarios where we do not use AE, we use AWS Lambda of which…
Ashit Vora
  • 131
  • 2
1
2 3 4