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

AWS lambda failed after enabled VPC

I am getting connection timeout error with VPC enabled but working fine without enabled VPC. { "errorMessage": "HTTPSConnectionPool(host='huggingface.co', port=443): Max retries ...
Vinoth Rc's user avatar
  • 101
0 votes
0 answers
45 views

EFS is getting unmounted from lambda when there is an update to efs

I have created EFS, and mounted this on lambda using terraform. It works, but when there is an update in EFS, then EFS gets unmounted. I need terraform to detect this update and automatically mount it ...
Vinay Chiruvella's user avatar
1 vote
0 answers
151 views

Root cause for my problem when deploying Spacy on AWS lambda (Klayers)?

I have been following this guide https://towardsdatascience.com/quickstart-spacy-on-aws-lambda-up-and-running-in-10-minutes-e347037a0ef8 to get Spacy up and running on AWS lambda. I have followed the ...
user3195845's user avatar
0 votes
0 answers
23 views

Deploying a FE and Lambda on the same AWS CloudFront distribution

I have an S3 bucket thats deployed on a domain trough CloudFront and I also have a lambda function that should also get requests from the same domain as the FE and I have no idea how I can acheave ...
BFG's user avatar
  • 1
0 votes
1 answer
56 views

How do you deploy a container to AWS Lambda?

I am working on this little project. https://github.com/jamesgeddes/itsbeginningtolookalotlikechristmas It's currently a work-in-progress - don't judge! As you can see, I have configured CircleCI to ...
James Geddes's user avatar
1 vote
0 answers
37 views

Proper separation of IaC and code deployment via CI / CD

We're about to implement infrastructure-as-code on our project. We already have CI/CD pipelines that deploy: A CloudFormation stack for an ECS service Several CloudFormation stacks for AWS lamdbas (...
DmytroL's user avatar
  • 111
0 votes
1 answer
571 views

How to set reserved concurrency of a lambda function

I have serveral lambda functions (all in the same region) and I want to limit the concurrency of one of them to a very small value. Specifically, I do not want more than 3 instances of this function ...
Itay Maman's user avatar
1 vote
0 answers
72 views

What causes cold start in serverless

I have not found a clear explanation on what causes the cold start in serverless. Could you try to explain it from both commercial and open-source platform's points of view? Commercial platforms such ...
yeehaw's user avatar
  • 11
0 votes
1 answer
45 views

Migrating to AWS with Devops [closed]

What are they key stages of migrating to AWS with Devops ? Can anyone list a use case or workflow?
laurajs's user avatar
  • 109
2 votes
1 answer
1k views

How I can retrieve aws lambda cloudwatch logs in txt format so I can search on them?

A lambda that I have deployed has gone wrong. Therefore, I want to look on logs and find out whats wrong about it. Hence I look upon cloudwatch logs for any error message. But the cloudwatch ...
Dimitrios Desyllas's user avatar
3 votes
2 answers
775 views

Terraform deletes AWS lambda layers instead of keeping the older versions

I am using terraform version 12.26 for AWS deployment. Whenever I try updating a lambda layer, the lambda layer version is incremented, but the older layer is deleted. Even though my current version ...
Sankalp Kotewar's user avatar
1 vote
1 answer
5k views

How to programmatically enable and disable SQS triggering AWS Lambda?

I have a requirement where I want to stop my lambda from receiving messages from SQS. And I want to implement this like an API which can toggle between the disabling and enabling of the AWS Lambda ...
Sankalp Kotewar's user avatar
0 votes
1 answer
48 views

AWS subnets for lambda synchronous invocations

Am I right in thinking giving a lambda using an API gateway 3 subnets each with a range of 16 would result in 2 subnets being used at once and 1 IP used for the API gateway that is in the same subnets ...
doug's user avatar
  • 513
1 vote
1 answer
162 views

Unable to send cloudwatch logs to loggly using a blueprint lambda - Invalid ciphertext

I am trying to use the loggly Lambda blueprint to send cloudwatch logs to loggly. I am doing this because I have a bunch of lambdas that I need to have a single point of viewing logs. I've followed ...
joshk132's user avatar
  • 465
0 votes
0 answers
3k views

SQS Error Message: The specified queue does not exist for this wsdl version

I have a Lambda function that is created inside a serverless framework setup. I am trying to pass in a queue url as an ENV variable, when I do that it results in the below error message. I've checked ...
joshk132's user avatar
  • 465
2 votes
1 answer
136 views

I want to scale up/down as fast as AWS Lambda but also be able to allocate the vCPU (minimum 8) per task, any advice?

Goal So I'm looking for an AWS product or combination of products to accomplish the following: Ability to do CPU heavy (non-parallel) calculations (min 8 vCPU's per node) Minimum timeout limit of ...
narzero's user avatar
  • 121
1 vote
2 answers
850 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 ...
stuart's user avatar
  • 113
1 vote
1 answer
2k 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 ...
doug's user avatar
  • 513
2 votes
1 answer
5k 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" { ...
doug's user avatar
  • 513
1 vote
1 answer
425 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" ...
doug's user avatar
  • 513
5 votes
0 answers
262 views

How Can I create layers for a lambda using Terraform? [closed]

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 ...
doug's user avatar
  • 513
1 vote
1 answer
176 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 ...
overexchange's user avatar
0 votes
2 answers
1k 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/...
romanbird's user avatar
  • 111
0 votes
1 answer
356 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 ...
romanbird's user avatar
  • 111
0 votes
1 answer
52 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 ...
Nic's user avatar
  • 351
1 vote
1 answer
113 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?
Dr. Chocolate's user avatar
2 votes
3 answers
576 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 ...
overexchange's user avatar
1 vote
1 answer
38 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 ...
pbms's user avatar
  • 121
2 votes
1 answer
738 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 ...
Niklas Rosencrantz's user avatar
2 votes
1 answer
929 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 ...
A.Rashad's user avatar
  • 123
3 votes
1 answer
9k 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 "...
Niklas Rosencrantz's user avatar
1 vote
2 answers
114 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 ...
Niklas Rosencrantz's user avatar
3 votes
1 answer
347 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 ...
swigganicks's user avatar
3 votes
1 answer
5k 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::...
Dmytrii Nagirniak's user avatar
8 votes
2 answers
9k 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 ...
Ulad Kasach's user avatar
0 votes
1 answer
52 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 ...
Simian's user avatar
  • 103
4 votes
3 answers
1k 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), ...
obaid's user avatar
  • 41
-2 votes
1 answer
310 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 ...
mrktos's user avatar
  • 11
3 votes
1 answer
772 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 ...
Ashit Vora's user avatar
11 votes
3 answers
12k 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 / ...
Chris Stryczynski's user avatar
2 votes
1 answer
894 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 ...
Hugo Rodger-Brown's user avatar
4 votes
2 answers
1k 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 ...
RuBiCK's user avatar
  • 305
7 votes
1 answer
5k 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()) { ...
Anish Sana's user avatar
1 vote
2 answers
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, ...
Dawny33's user avatar
  • 2,826
7 votes
1 answer
864 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 ...
Dawny33's user avatar
  • 2,826
12 votes
2 answers
404 views

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 ...
Assaf Lavie's user avatar
  • 1,241
6 votes
3 answers
1k 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 ...
Dawny33's user avatar
  • 2,826
15 votes
4 answers
12k 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 ...
Evgeny Zislis's user avatar
13 votes
2 answers
6k 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 ...
Dawny33's user avatar
  • 2,826