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
22,452 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

You can learn more about the Lambda function from the AWS Training and Certification.

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 8, 2020 in AWS by Shrikant
• 180 points
9,590 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, 2020 in AWS by MD
• 95,440 points
3,738 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, 2020 in AWS by MD
• 95,440 points
1,848 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
+1 vote
1 answer
+2 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP