Fortinet black logo

AWS Administration Guide

Setting up CloudWatch

Copy Link
Copy Doc ID 94c869ba-eb59-11ed-8e6d-fa163e15d75b:154350
Download PDF

Setting up CloudWatch

In this section, a CloudWatch event rule is created to invoke the Lambda function based on events happening in GuardDuty findings. If you have not subscribed to GuardDuty yet, you must subscribe to it before moving on. For information about GuardDuty, see Amazon GuardDuty.

To create a new event rule:
  1. For Event Source, choose Event Pattern, and select Events by Service from the dropdown list.
  2. For Service Name, select GuardDuty from the dropdown list.
  3. For Event Type, select GuardDuty Finding from the dropdown list.
  4. Check that the Event Pattern Preview looks like the following code snippet:

    {

    "source": [

    "aws.guardduty"

    ],

    "detail-type": [

    "GuardDuty Finding"

    ]

    }

  5. For the targets, click Add Target* and select Lambda function from the dropdown list.
  6. For the Function, select the Lambda function you created from the dropdown list.
  7. Click Configure rule details.
  8. Name the rule as desired.
  9. For State, select the Enabled checkbox.
  10. Click Create Rule.

Setting up CloudWatch

In this section, a CloudWatch event rule is created to invoke the Lambda function based on events happening in GuardDuty findings. If you have not subscribed to GuardDuty yet, you must subscribe to it before moving on. For information about GuardDuty, see Amazon GuardDuty.

To create a new event rule:
  1. For Event Source, choose Event Pattern, and select Events by Service from the dropdown list.
  2. For Service Name, select GuardDuty from the dropdown list.
  3. For Event Type, select GuardDuty Finding from the dropdown list.
  4. Check that the Event Pattern Preview looks like the following code snippet:

    {

    "source": [

    "aws.guardduty"

    ],

    "detail-type": [

    "GuardDuty Finding"

    ]

    }

  5. For the targets, click Add Target* and select Lambda function from the dropdown list.
  6. For the Function, select the Lambda function you created from the dropdown list.
  7. Click Configure rule details.
  8. Name the rule as desired.
  9. For State, select the Enabled checkbox.
  10. Click Create Rule.