Creating a CloudWatch Events Rule
You need to configure a CloudWatch Events rule to get Amazon AWS Security Hub events and forward the events to the CloudWatch Logs.
Ensure that you complete the following tasks:
Creating an IAM role for the Lambda function
Creating a Lambda function
- Log in to your CloudWatch console (https://console.aws.amazon.com/cloudwatch/).
- Click Events > Rules in the navigation pane.
- Click Create rule.
- In the Create Rule pane, in Event Source, select the following field values:
Table 1: CloudWatch Events Rule
Field
Value
Service Name
Security Hub
Event Type
All Events
- In the Targets pane, click Add targets.
- Select Lambda function.
- In the Function field, select the function that you created when you completed the Creating a Lambda function procedure.
- Click Configure details to open the Configure rule details pane.
- In the Configure rule details pane, type a
name, such as
AWSSecurityHubToJSA
. - Click Create rule.