This rule ensures the concurrent execution limit is configured for Lambda functions.
Rule | Lambda functions concurrent execution limit configured |
Framework | FedRAMP Moderate Revision 4 |
Severity | ✔ Low |
Concurrent Execution Limit for Lambda Functions
Description
The concurrent execution limit for Lambda functions is a configuration setting that specifies the maximum number of concurrent executions allowed for a Lambda function in the context of a FedRAMP Moderate Revision 4 environment. This limit is enforced by the AWS Lambda service to ensure resource utilization and prevent potential performance issues.
Troubleshooting Steps (if applicable)
If you encounter issues related to the concurrent execution limit of Lambda functions, follow these troubleshooting steps:
Necessary Code (if applicable)
Modifying the concurrent execution limit for a Lambda function can be done using the AWS Management Console or the AWS Command Line Interface (CLI). Below is an example of how to use the CLI to modify the limit.
# Set concurrency limit for a Lambda function aws lambda put-function-concurrency \ --function-name <function-name> \ --reserved-concurrent-executions <concurrency-limit>
Step-by-Step Guide for Remediating the Issue
Access AWS Management Console: Log in to the AWS Management Console with your credentials.
Navigate to Lambda service: Go to the Lambda service by searching for "Lambda" in the search bar and selecting it.
Select the Lambda function: Choose the relevant Lambda function from the list of functions displayed.
View current concurrency limit: In the function details page, scroll down to the "Concurrency" section to view the current concurrency limit.
Modify the limit (if required): If you determine that the current limit needs adjustment, follow the necessary code mentioned above to modify the concurrent execution limit using the AWS CLI.
Test and monitor: After modifying the limit, test the Lambda function under workload conditions and monitor its behavior to ensure the revised limit mitigates the issue.
Optimize function performance (if needed): If the issue persists or reoccurs, consider optimizing the function code and AWS resources used by the function to reduce the overall resource consumption and enhance performance.
Repeat as necessary: Repeat this process for other Lambda functions if multiple functions are affected by the concurrent execution limit.
Note: Keep in mind that the concurrent execution limit should be set based on the available resources and the expected workload demand for each Lambda function. It is essential to strike a balance to ensure optimal performance while avoiding resource exhaustion.
By following these steps, you can effectively manage the concurrent execution limit for Lambda functions within the FedRAMP Moderate Revision 4 environment.