Monitors number of active AWS Lambda containers
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Monitors number of active AWS Lambda containers and reports to CloudWatch as a custom metric.


  • Create IAM Role (see IAM.policy)
  • Install and package zip file with source code
    • npm install && npm run package
  • Create Lambda function
    • Runtime: nodejs4.3
    • Timeout: 300
    • Memory: 128
    • Handler: src/index.handler
    • Attach newly created IAM Role
    • Upload source package
    • Setup 1 minute scheduling

##Options In src/index.js:

var options = {
    cloudWatchMetricNamespace: 'Lambda/ContainerMonitoring', // CloudWatch metric namespace
    metricName: 'ActiveContainers', // CloudWatch metric name
    activeLambdaOffsetMillis: 10 * 60 * 1000 // Time in millis that a container is considered active

##How it works Read more about hos it works here: