Open the Functions page of the Lambda console.
Choose a function.
Under Function overview, choose Add trigger.
Set the trigger type to EventBridge (CloudWatch Events).
For Rule, choose Create a new rule.
Configure the remaining options and choose Add.
https://docs.aws.amazon.com/lambda/latest/dg/services-cloudwatchevents.html