Creating a Lambda function
You need to create and configure a CloudWatch Events rule to get Amazon AWS Security Hub events and forward the events to the CloudWatch Logs. To do that you need to create an AWS Lambda Function that triggers the processing from CloudWatch Events to CloudWatch Logs.
- Go to your AWS Lambda console.
- Click Create function.
- In the Author from scratch pane, complete the
following fields:
Table 1: Lambda Function
Field
Entry
Name
You can use
GuardDutyToCloudWatch
or something more appropriate.Runtime
Python 3.6
Role
Choose an existing role
Existing Role
Select the role that you created.
- Click Create function.