Smart Insights Rules

Product Documentation
Smart Insights Rules
Navigate through spaces
⌘K
Smart Insights Rules
AWS Lambda
Lambda function runtime is upgradeable
Lambda function is nearing memory limit
Lambda function has over provisioned memory
Lambda function is near the concurrent limit
Lambda function has started to throttle requests
Lambda function is not tagged
Lambda function is nearing timeout
Lambda function has high error rate
Lambda function is not being used
API Gateway
API Gateway has high 4xx error percentage
API Gateway has high 5xx error percentage
API Gateway latency is nearing timeout
API Gateway has high latency compared to the previous day
DynamoDB
DynamoDB has read throttles
DynamoDB has write throttles
DynamoDB has high latency
DynamoDB Table is nearing provisioned WCUs
DynamoDB Table is nearing provisioned RCUs
Docs powered by archbee 

Lambda function is not being used

3min

Why do I see this?

One of your Lambda functions didn’t have any invocations in the last 30 days.

What does this mean?

One of the Lambda functions that you have deployed hasn't been invoked in a month.

There could be multiple reasons behind it. Invoking a specific version of the function that doesn't exist anymore, an issue or a bug in the function itself, policy issue, to name a few. Or it can simply be a function isn’t required anymore.

In any case, this event tells you to inquire about the reasons. Any resource you provision on AWS could be a potential security risk, if left unsupervised. So, in accordance with the security best practices, you should delete the functions that aren't needed.

How do I fix ”Lambda function is not being used“?

If you were notified of this event for any of your Lambda functions, start by identifying if the function is required at all.

If the function is needed, check if the function has the right policies attached, and that all the entities involved have sufficient permissions.

Ensure that the function version is the same one that the client is referencing and invoking. You can also try invoking the function manually to see if it's working or if you get any error or warning messages that you can work with. If you need further help, you can visit AWS guide for troubleshooting invocation issues in Lambda.

Updated 03 Mar 2023
Did this page help you?
Yes
No
PREVIOUS
Lambda function has high error rate
NEXT
API Gateway
Docs powered by archbee 
TABLE OF CONTENTS
Why do I see this?
What does this mean?
How do I fix ”Lambda function is not being used“?