Capturing all calls made by your Lambda functions is important for auditing, security, and compliance. It gives you a global overview of the AWS services they interact with. One service that leverages this feature is CloudTrail.
CloudTrail records API calls made by your Lambda functions. It's straightforward and easy to use. All you need to do is navigate to CloudTrail from the AWS Management Console and filter events by the event source, which should be lambda.amazonaws.com.
There, you should have all of the calls that have been made by each Lambda function, as shown in the following screenshot:
In addition to exposing event history, you can create a trail in each AWS region to record your Lambda function's events in a single S3 bucket, then implement a log analysis pipeline using the ELK (Elasticsearch, Logstash, and...