2022 Developer Survey is open! Take survey.

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
0 answers
27 views

A managed resource "aws_apigatewayv2" "lambda-api" has not been declared in the root module

I know I need to declare this somewhere, the root module, where can I find this module and the relevant documentation on how to implement this properly? This is from a tutorial I am trying to follow: ...
user avatar
  • 1
0 votes
0 answers
14 views

Timed AWS RDS access?

For security reasons, we want to have a time limit for users logged into our AWS RDS DB instances, that is, users are automatically logged out after so many minutes. I followed IAM database ...
user avatar
  • 285
0 votes
0 answers
213 views

Notify users on failed AWS cognito login and block on multiple failed login

I am looking for the steps to block cognito user after multiple failed login (eg. 3 failed login) and notify via email for each failed login with some details like location or IP of login device. Got ...
user avatar
1 vote
0 answers
52 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 ...
user avatar
  • 11
0 votes
1 answer
39 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?
user avatar
  • 109
2 votes
1 answer
474 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 ...
user avatar
1 vote
1 answer
342 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 ...
user avatar
1 vote
1 answer
2k 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 ...
user avatar
0 votes
1 answer
36 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 ...
user avatar
  • 463
1 vote
1 answer
111 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 ...
user avatar
  • 435
0 votes
0 answers
1k 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 ...
user avatar
  • 435
2 votes
1 answer
68 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 ...
user avatar
  • 121
1 vote
2 answers
289 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 ...
user avatar
  • 113
1 vote
1 answer
824 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 ...
user avatar
  • 463
1 vote
1 answer
2k 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-...
user avatar
  • 463
1 vote
1 answer
114 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....
user avatar
  • 463
5 votes
0 answers
128 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 ...
user avatar
  • 463
1 vote
1 answer
105 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 ...
user avatar
0 votes
2 answers
744 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/...
user avatar
  • 111
0 votes
1 answer
290 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 ...
user avatar
  • 111
0 votes
1 answer
31 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 ...
user avatar
  • 281
1 vote
1 answer
25 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?
user avatar
2 votes
2 answers
195 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 ...
user avatar
1 vote
1 answer
37 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 ...
user avatar
  • 121
2 votes
1 answer
609 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 ...
user avatar
2 votes
1 answer
473 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 ...
user avatar
  • 123
3 votes
1 answer
7k 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 "...
user avatar
1 vote
2 answers
103 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 ...
user avatar
3 votes
1 answer
235 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 ...
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::...
user avatar
5 votes
2 answers
6k 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 ...
user avatar
0 votes
1 answer
51 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 ...
user avatar
  • 103
4 votes
3 answers
949 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), ...
user avatar
  • 41
-2 votes
1 answer
280 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 ...
user avatar
  • 11
3 votes
1 answer
656 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 ...
user avatar
11 votes
3 answers
9k 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 / ...
user avatar
2 votes
1 answer
617 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 ...
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 ...
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()) { ...
user avatar
0 votes
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, ...
user avatar
  • 2,726
7 votes
1 answer
795 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 ...
user avatar
  • 2,726
12 votes
2 answers
351 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 ...
user avatar
  • 1,231
6 votes
3 answers
866 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 ...
user avatar
  • 2,726
14 votes
4 answers
10k 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 ...
user avatar
12 votes
1 answer
5k 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 ...
user avatar
  • 2,726