Logging AWS Certificate Manager API Calls with AWS CloudTrail
AWS Certificate Manager (ACM) is integrated with AWS CloudTrail, a service that captures API calls, delivers the log files to an Amazon Simple Storage Service (Amazon S3) bucket that you specify, and maintains API call history. CloudTrail captures API calls from the AWS Certificate Manager console, CLI, or from your code. Using the information collected by CloudTrail, you can determine the request that was made to ACM, the IP address from which the request was made, who made the request, when it was made, and so on.
To learn more about CloudTrail, including how to configure and enable it, see the AWS CloudTrail User Guide.
When you enable CloudTrail logging in your AWS account, API calls made to ACM actions are tracked in CloudTrail log files. The ACM records are written with other AWS service records. CloudTrail determines when to create and write to a new log file based on a time period and file size.
The following ACM actions are supported:
Every log entry contains information about who generated the request. The user identity information in the log entry helps you determine whether the request was made with root or with IAM user credentials, with temporary security credentials for a role or federated user, or by another AWS service. For more information, see the CloudTrail userIdentity Element.
You can store your log files in your bucket for as long as you want, but you can also define Amazon S3 lifecycle rules to archive or delete log files automatically. By default, your log files are encrypted using Amazon S3 server-side encryption (SSE).
You can choose to have CloudTrail publish Amazon SNS notifications when new log files are delivered if you want to take quick action upon log delivery. For more information, see Configuring Amazon SNS Notifications for CloudTrail in the AWS CloudTrail User Guide.
You can also aggregate AWS Certificate Manager log files from multiple AWS regions and multiple AWS accounts into a single Amazon S3 bucket. For more information, see Receiving CloudTrail Log Files from Multiple Regions and Receiving CloudTrail Log Files from Multiple Accounts .
CloudTrail log files contain one or more log entries where each entry lists multiple JSON-formatted events. A log entry represents a single request from any source and includes information about the requested action, the date and time of the action, request parameters and so on. The log entries are not guaranteed to be in any particular order. That is, they are not an ordered trace of the public API calls. For more information about the fields that make up a log entry, see the CloudTrail Event Reference.
For examples of possible ACM CloudTrail entries, see the following topics.