Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


Configuring the Lambda Function


To configure the Lambda function, create an AWS Lambda Function that triggers the processing from CloudWatch Events to CloudWatch Logs.

Ensure that you have completed the following tasks:

  1. Creating an IAM role for the Lambda function

  2. Creating a Lambda function

  3. Creating a CloudWatch events rule

  1. Go to your AWS Lambda console.
  2. Open the configuration section of your Lambda function. Click Create function.
  3. If CloudWatch Events is not automatically added as a trigger source, then add it. The Designer tab appears:
  4. On the Function code pane, replace the default code in with the following Python code:
  5. Click Save.