How to kill a lambda function in AWS?

0 votes
I have a lambda function running in my AWS that take almost 8mins. Now that function is malfunctioning and creating different results. Can someone help me as how can I kill the lambda function?
Mar 26, 2019 in AWS by boomer
11,889 views

2 answers to this question.

0 votes

You cannot kill a running lambda function. Though there is another way by which you can set concurrency limit to 0. This will stop it from starting any more executions.

$ aws lambda put-function-concurrency --function-name my-function --reserved-concurrent-executions 0
answered Mar 26, 2019 by Esha
0 votes
$ aws lambda put-function-concurrency --function-name my-function --reserved-concurrent-executions 0
answered Mar 28, 2019 by Shashank
• 1,370 points

Related Questions In AWS

0 votes
3 answers

How to check instance state and status via Lambda function in AWS?

import boto3 from pprint import pprint def lambda_handler(event, context):          # ...READ MORE

answered Sep 7 in AWS by Shrikant
• 180 points
1,676 views
0 votes
1 answer

How to setup an alarm when Lambda function fails in AWS?

Hi@akhtar, To create an Alarm for Lambda function, ...READ MORE

answered Apr 2 in AWS by MD
• 80,390 points
376 views
+1 vote
1 answer

How to configure a Lambda function to access resources in a VPC?

Hi@akhtar, You can configure a Lambda function to ...READ MORE

answered Aug 27 in AWS by MD
• 80,390 points
244 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
+1 vote
1 answer
+1 vote
1 answer