How can I check to see who modified a Lambda function what changes were made?
3 minute read
I want to find out who modified an AWS Lambda function and what changes were made.
You can use AWS CloudTrail to track which users are modifying Lambda functions and what changes were made. CloudTrail is turned on by default for your AWS account.
For an ongoing record of events in your AWS account, create a trail. Using a trail, CloudTrail creates logs of API calls made on your account. These logs are delivered to an Amazon Simple Storage Service (Amazon S3) bucket that you specify. If you don't configure a trail, you can still view the most recent events in the CloudTrail console in Event history.
3. Select the S3 bucket value for the trail that you want to view. The Amazon S3 console opens and shows that bucket, at the top level for the log files.
4. Choose the folder for the AWS Region where you want to review log files.
5. Navigate the bucket folder structure to the year, the month, and the day where you want to review logs of activity in that Region.
6. Select the file name, and then choose Download.
7. Unzip the file, and then use your favorite JSON file viewer to see the log.
The log contains information about requests for resources in your account. For example, who made the request, the services used, and the actions performed. For more information, see Understanding Lambda log file entries.