Configuring CloudWatch with CloudTrail

To integrate CloudWatch with CloudTrail, we have to edit Greeter-Audit-Trail that we created in the previous section.

Navigate to the trail details by clicking on the respective trail in the Trails section of the CloudTrail dashboard, and edit the CloudWatch Logs section. We can specify a log group by either creating a new one or adding an existing one. The following screenshot shows this part of the process:

Creating New or existing log group in CloudWatch Logs

Get Hands-On Serverless Applications with Kotlin now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.