Managing applications in the AWS Lambda console - AWS Lambda

Managing applications in the AWS Lambda console

The AWS Lambda console helps you monitor and manage your Lambda applications. The Applications menu lists AWS CloudFormation stacks with Lambda functions. The menu includes stacks that you launch in AWS CloudFormation by using the AWS CloudFormation console, the AWS Serverless Application Repository, the AWS CLI, or the AWS SAM CLI.

To view a Lambda application
  1. Open the Lambda console Applications page.

  2. Choose an application.

    A monitoring widget.

The overview shows the following information about your application.

  • AWS CloudFormation template or SAM template – The template that defines your application.

  • Resources – The AWS resources that are defined in your application's template. To manage your application's Lambda functions, choose a function name from the list.

Monitoring applications

The Monitoring tab shows an Amazon CloudWatch dashboard with aggregate metrics for the resources in your application.

To monitor a Lambda application
  1. Open the Lambda console Applications page.

  2. Choose Monitoring.

By default, the Lambda console shows a basic dashboard. You can customize this page by defining custom dashboards in your application template. When your template includes one or more dashboards, the page shows your dashboards instead of the default dashboard. You can switch between dashboards with the drop-down menu on the top right of the page.

Custom monitoring dashboards

Customize your application monitoring page by adding one or more Amazon CloudWatch dashboards to your application template with the AWS::CloudWatch::Dashboard resource type. The following example creates a dashboard with a single widget that graphs the number of invocations of a function named my-function.

Example function dashboard template
Resources: MyDashboard: Type: AWS::CloudWatch::Dashboard Properties: DashboardName: my-dashboard DashboardBody: | { "widgets": [ { "type": "metric", "width": 12, "height": 6, "properties": { "metrics": [ [ "AWS/Lambda", "Invocations", "FunctionName", "my-function", { "stat": "Sum", "label": "MyFunction" } ], [ { "expression": "SUM(METRICS())", "label": "Total Invocations" } ] ], "region": "us-east-1", "title": "Invocations", "view": "timeSeries", "stacked": false } } ] }

You can get the definition for any of the widgets in the default monitoring dashboard from the CloudWatch console.

To view a widget definition
  1. Open the Lambda console Applications page.

  2. Choose an application that has the standard dashboard.

  3. Choose Monitoring.

  4. On any widget, choose View in metrics from the drop-down menu.

    A monitoring widget.
  5. Choose Source.

For more information about authoring CloudWatch dashboards and widgets, see Dashboard body structure and syntax in the Amazon CloudWatch API Reference.