Creating a trail 

  1. Navigate to the CloudTrail dashboard and click on Create a Trail.
  2. Select only the events from the current region by selecting No for Apply trail to all regions.
  3. Select All Read/Write events to be captured.
  4. In the Data events section, select the Lambda function Greeter as the resource to audit. You can select as many resources as you want to audit:

The first step in creating a trail and configuring it to record the data events for the Greeter Lambda function

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.