

# Logging AWS Continuum API calls using AWS CloudTrail

**Note**  
AWS Continuum for software supply chain is in preview release and is subject to change.

AWS Continuum is integrated with AWS CloudTrail, a service that provides a record of actions taken by a user, role, or an AWS service in AWS Continuum. CloudTrail captures all API calls for AWS Continuum as events. The calls captured include calls from the AWS Continuum console and code calls to the AWS Continuum API operations. If you create a trail, you can enable continuous delivery of CloudTrail events to an Amazon S3 bucket, including events for AWS Continuum. If you don't configure a trail, you can still view the most recent events in the CloudTrail console in **Event history**. Using the information collected by CloudTrail, you can determine the request that was made to AWS Continuum, the IP address from which the request was made, who made the request, when it was made, and additional details.

Trails don't log data events by default. For the Continuum for software supply chain operations that CloudTrail records as data events, see [AWS Continuum information in CloudTrail](#service-name-info-in-cloudtrail).

To learn more about CloudTrail, see the [AWS CloudTrail User Guide](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-user-guide.html).

## AWS Continuum information in CloudTrail
<a name="service-name-info-in-cloudtrail"></a>

CloudTrail is turned on for your AWS account when you create the account. To keep an ongoing record of events in your AWS account, including events for AWS Continuum, create a trail. With a *trail*, you can deliver CloudTrail log files to an Amazon S3 bucket. By default, when you create a trail in the console, the trail applies to all AWS Regions. The trail logs events from all Regions in the AWS partition. It delivers the log files to the Amazon S3 bucket that you specify. You can also configure other AWS services to further analyze and act upon the event data collected in CloudTrail logs. For more information, see the following:
+ [Overview for creating a trail](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-create-and-update-a-trail.html)
+ [CloudTrail supported services and integrations](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-aws-service-specific-topics.html)
+ [Configuring Amazon SNS notifications for CloudTrail](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/configure-sns-notifications-for-cloudtrail.html)
+ [Receiving CloudTrail log files from multiple regions](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/receive-cloudtrail-log-files-from-multiple-regions.html) and [Receiving CloudTrail log files from multiple accounts](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-receive-logs-from-multiple-accounts.html)

Continuum for software supply chain records the following decision operations as CloudTrail data events. For descriptions of these operations, see the [AWS Continuum API Reference](https://docs.aws.amazon.com/continuum/latest/APIReference/). Continuum for software supply chain records them under the following resource types:<a name="sc-cloudtrail-data-events"></a>

`AWS::Continuum::SupplyChainPackageDecision`  
`CreatePackageDecision`, `GetPackageDecision`, `ListPackageDecisions`, and `ListDecisionEvidence`.

`AWS::Continuum::SupplyChainPackageVulnerability`  
`GetVulnerability`.

To see these events, turn on data event logging for the `AWS::Continuum::SupplyChainPackageDecision` and `AWS::Continuum::SupplyChainPackageVulnerability` resource types in your trail. For more information, see [Logging data events](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html) in the AWS CloudTrail User Guide.

When you turn on data event logging for these resource types, Continuum for software supply chain records package decision operations as CloudTrail data events, including decisions that deny a package.

Continuum for software supply chain records these data events in the following AWS Regions: US East (N. Virginia) (`us-east-1`), US West (Oregon) (`us-west-2`), and Europe (Frankfurt) (`eu-central-1`).

For the IAM permissions that control access to these operations, see [Identity and access management for AWS Continuum](security-iam.md). To request and read decisions, see [Reviewing package decisions and evidence](sc-decisions.md).

Continuum for software supply chain also records its configuration operations as CloudTrail management events, with the event source `continuum.amazonaws.com`, in the same Regions. A trail logs management events by default. These operations are `CreateSupplyChainPolicy`, `GetSupplyChainPolicy`, `UpdateSupplyChainPolicy`, `DeleteSupplyChainPolicy`, `ListSupplyChainPolicies`, `CreateSupplyChainPolicyException`, `GetSupplyChainPolicyException`, `UpdateSupplyChainPolicyException`, `DeleteSupplyChainPolicyException`, `ListSupplyChainPolicyExceptions`, and `GetSupplyChainManagedPolicy`.

Continuum for software supply chain also records the tagging operations `TagResource`, `UntagResource`, and `ListTagsForResource` as CloudTrail management events, with the event source `continuum.amazonaws.com`.

CloudTrail also logs the AWS Continuum actions for penetration testing, which are documented in the [AWS Continuum API Reference](https://docs.aws.amazon.com/continuum/latest/APIReference/). For example, calls to the `CreatePentest`, `StartPentestJob`, and `StartPentestThreatModelRun` actions generate entries in the CloudTrail log files. CloudTrail logs calls to the `StartPentestCodeRemediation` and `UpdatePentestFinding` actions in the same way.

Every event or log entry contains information about who generated the request. The identity information helps you determine the following:
+ Whether the request was made with root or AWS Identity and Access Management (IAM) user credentials.
+ Whether the request was made with temporary security credentials for a role or federated user.
+ Whether the request was made by another AWS service.

For more information, see the [CloudTrail userIdentity element](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-event-reference-user-identity.html).

## Understanding AWS Continuum log file entries
<a name="understanding-service-name-entries"></a>

A trail is a configuration that enables delivery of events as log files to an Amazon S3 bucket that you specify. CloudTrail log files contain one or more log entries. An event 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. CloudTrail log files aren't an ordered stack trace of the public API calls, so they don't appear in any specific order.