Skip to content

Latest commit

 

History

History
27 lines (15 loc) · 1.72 KB

README.md

File metadata and controls

27 lines (15 loc) · 1.72 KB

check_lambda_capacity

Build status

AWS Lambda function which checks the total capacity of all Lambda functions in a specific region and publishes the metric to CloudWatch. A CloudFormation template is included to bootstrap the process.

Why

AWS Lambda Deployment Limits. The total size of all the deployment packages that can be uploaded per region is 75GB. If you are including libraries and utilizing versioning for you lambda functions, you might eventually reach this limit. Monitor the total usage size is a good idea.

How

This lambda function uses the ListFunctions and ListVersionsByFunction API iterating and summing up their CodeSize, and posts the value (in Bytes) to CloudWatch.

A CloudFormation template is provided to help with the creation of necessary resources, in addition to configuring an alarm.

Notes

This lambda function should be run using Scheduled events, but CloudFormation support is currently unavailable so we need to explicitly configure this.

License

MIT License (see LICENSE)