Fortinet Document Library

Version:


Table of Contents

AWS Cookbook

Resources

Upgrade Path Tool

AWS Cookbook

6.4.0
Download PDF
Copy Link

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.

The following describes creating 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 code snippet below.

    {

    "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.

Resources

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.

The following describes creating 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 code snippet below.

    {

    "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.