Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

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.

Filter by
Sorted by
Tagged with
1
vote
2answers
17 views

how long does it take to deploy a serverless function?

using any method - cli, serverless.com, terraform, roughly: how much time can i expect to pass between these two steps: submitting a new function to AWS (or azure or GCF), and having that function ...
1
vote
1answer
16 views

How can I enable active tracing by default for an AWS Lambda function using Terraform?

On the console, there’s the option to enable active tracking for X-ray tracking but I can see this in the Terraform aws_lambda_function resource the aws_xray_sampling_rule resources? I'm currently ...
1
vote
1answer
29 views

How do I create multiple versions of a lambda function in terraform

I have it creating one version. It has latest and version 2 but can’t getting it to create more than one version of the same lambda? resource "aws_lambda_function" "lambda" { function_name = "test-...
1
vote
1answer
14 views

How do I create separate versions of lambda functions through terraform?

I'm Running Terraform v0.11.14 resource "aws_lambda_function" "test_lambda" { filename = "lambda_function.zip" function_name = "test_lambda" role = "${aws_iam_role....
3
votes
0answers
28 views

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 ...
0
votes
1answer
25 views

API Gateway - How Deploy API works?

After creating API Gateway with two API names and integrating with lambda function, AWS documentation recommends to deploy this API, as shown below: 1) What does deploy API mean? How creating API ...
0
votes
2answers
96 views

AWS lambda: works locally but fails in deplyment

I have a node.js lambda function that adds a database entry and then calls another lambda function. The code works fine when I test locally via serverless invoke local --function create --path mocks/...
0
votes
1answer
60 views

Serverless framework: how to specify a c++ lambda function with provided deployment package

I have followed the guide in https://aws.amazon.com/blogs/compute/introducing-the-c-lambda-runtime/ to package my c++ lambda function into a zip file. The zip file has the contents: function.zip ...
0
votes
1answer
24 views

Which S3 buckets is Lambda allowed to read code from?

There doesn't seem to be any way to define a policy about which S3 buckets Lambda is allowed to run code from. With most services in AWS, the usual practice is to define an IAM role that can be ...
1
vote
1answer
22 views

Is there a way to find out every resource that calls a lambda?

I have a lambda that gets called from several place through out an large app. Is there a way to discover every resource that is calling/using/attached to that lambda?
1
vote
2answers
74 views

When is it not appropriate to use serverless technology such as AWS Lambda?

With serverless computing using AWS lambda, Amazon(AWS) is taking the ownership of architecture, administration & deployment aspect of AWS services(VPC/EC2/ELB/AScaling/Rtables/SGroups/etc...) for ...
1
vote
1answer
28 views

RDS IOPS utilizing fully

I have upgraded RDS mysql to 1000 IOPS from 120 IOPS, But same database operations utilizing more than 1000 IOPS now. Is there any way to implement RDS cluster or Is it possible to make use of lambda ...
2
votes
1answer
77 views

Strategies to work around 30 sec timeout

I received a timeout when trying to perform 7000 * 3 inserts into MariaDB in 30 seconds with AWS Python Lambda. I have three ideas how to get around the 30 second API Gateway timeout: Convert the ...
2
votes
1answer
97 views

Storing my Lambda Functions on GitHub

Will it be practically possible to build some pipeline; starting from rapid AWS Lambda function development using blueprints, to store them later on a new GitHub repo, that is linked to some CICD ...
1
vote
1answer
1k views

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 "...
1
vote
2answers
75 views

Choice for scheduled task in AWS

I have deployed an AWS Lambda with Python 3.6 and CloudFormation executing a scheduled task which writes a JSON file once a minute to an S3 bucket. Now I wonder if this is a good way of doing it, or ...
3
votes
1answer
102 views

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 ...
3
votes
1answer
2k views

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::...
1
vote
1answer
698 views

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 ...
0
votes
1answer
46 views

Processing message queues quickly without wasting money on AWS Lambda

What are some strategies and patterns for processing message queues quickly? I have a Lambda function that is invoked on a schedule every x minutes to process a number of messages in the queue. I ...
4
votes
2answers
451 views

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), ...
-2
votes
1answer
194 views

Amazon AWS - Amazon Connect IAM policies

I was trying to lock down user account just to Amazon Connect, Lambda and S3. I was able to give permissions to S3 and Lambda but I cannot find permissions for Amazon Connect. I have went through the ...
3
votes
1answer
306 views

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 ...
8
votes
2answers
4k views

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 / ...
1
vote
1answer
281 views

AWS Redshift UNLOAD not firing S3 PUT event

I am trying to use Redshift to UNLOAD data to S3 and then pick that data up with a Lambda function and process it. All of the constituent parts (the UNLOAD, the Lambda function) now work, however the ...
4
votes
2answers
505 views

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 ...
7
votes
1answer
3k views

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()) { ...
0
votes
2answers
6k views

How do I launch Lambda in my own VPC?

The VPC configurations option in Lambda tells this: All AWS Lambda functions run securely inside a default system-managed VPC. However, you can optionally configure Lambda to access resources, ...
7
votes
1answer
669 views

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 ...
10
votes
2answers
306 views

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 ...
6
votes
3answers
658 views

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 ...
14
votes
4answers
7k views

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 ...
11
votes
1answer
2k views

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 ...