π‘οΈ AWS Lambda Function has low invocation activityπ’
- Contextual name: π‘οΈ Function has low invocation activityπ’
- ID:
/ce/ca/aws/lambda/function-low-invocation-activity - Tags:
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
- Policy Type:
BEST_PRACTICE - Policy Categories:
COST
Statsβ
not available
Logicβ
- π§ prod.logic.yamlπ’
Descriptionβ
Descriptionβ
This policy identifies AWS Lambda functions with fewer than 10 invocations over the last 14 days for an ownership and continued-necessity review. It includes functions with no invocations, treating a null 2-Week Invocation Count as zero under the established CMDB data contract. Functions with at least 10 recorded execution errors or throttled requests in the same period are excluded because these counters demonstrate activity that requires troubleshooting rather than an inactivity review.
Rationaleβ
Low or absent invocation activity can reveal obsolete deployments, unnecessary permissions, and unused integrations. One review covers both idle functions and functions that execute only occasionally, since both require the same ownership and dependency assessment.
The threshold of fewer than 10 invocations over 14 days is a review heuristic, not an AWS service limit or a capacity recommendation. It does not establish oversized memory or significant compute waste. A function with no executions does not incur request or execution charges; savings may come from separately billed resources, such as provisioned concurrency or retained logs.
... see more
Remediationβ
Remediationβ
- Identify the function owner and confirm the expected invocation frequency. Review invocation history, schedules, event source mappings, triggers, aliases, function URLs, resource policies, and upstream dependencies. Use the CMDB application and owner information when available.
- Compare the finding with the
AWS/LambdaInvocationsmetric in CloudWatch using the Sum statistic over the same 14-day period. Use the function-level dimension covering all versions and aliases in the correct account and Region. For Lambda@Edge, review the Regions where replicas execute. The CMDB represents no invocation activity as a null count.- Extend the review beyond 14 days when weekly, monthly, seasonal, recovery, or standby use is expected. If the function is intentionally infrequent, record its business justification and use the organization's policy exception process. Review recorded execution errors and throttled requests before retiring a function. Even activity below the exclusion threshold can indicate a failed integration or concurrency issue. Reserved concurrency controls capacity; it is not billed provisioned concurrency and should not be counted as savings.
... see more
policy.yamlβ
Linked Framework Sectionsβ
| Section | Sub Sections | Internal Rules | Policies | Flags | Compliance |
|---|---|---|---|---|---|
| πΌ Cloudaware Framework β πΌ Waste Reduction | 31 | no data |