{
	"id": "7fbb8f08-b2c1-4992-83ee-2aa6caa5f9dd",
	"created_at": "2026-04-06T00:08:38.530346Z",
	"updated_at": "2026-04-10T03:20:47.007007Z",
	"deleted_at": null,
	"sha1_hash": "1f77dc3359ddfc1c38a8ff556ad30cb730c689a7",
	"title": "update-trail — AWS CLI 2.34.23 Command Reference",
	"llm_title": "",
	"authors": "",
	"file_creation_date": "0001-01-01T00:00:00Z",
	"file_modification_date": "0001-01-01T00:00:00Z",
	"file_size": 100816,
	"plain_text": "update-trail — AWS CLI 2.34.23 Command Reference\r\nArchived: 2026-04-05 16:30:25 UTC\r\nDescription¶\r\nUpdates trail settings that control what events you are logging, and how to handle log files. Changes to a trail do\r\nnot require stopping the CloudTrail service. Use this action to designate an existing bucket for log delivery. If the\r\nexisting bucket has previously been a target for CloudTrail log files, an IAM policy exists for the bucket.\r\nUpdateTrail must be called from the Region in which the trail was created; otherwise, an\r\nInvalidHomeRegionException is thrown.\r\nSee also: AWS API Documentation\r\nSynopsis¶\r\n update-trail\r\n--name \u003cvalue\u003e\r\n[--s3-bucket-name \u003cvalue\u003e]\r\n[--s3-key-prefix \u003cvalue\u003e]\r\n[--sns-topic-name \u003cvalue\u003e]\r\n[--include-global-service-events | --no-include-global-service-events]\r\n[--is-multi-region-trail | --no-is-multi-region-trail]\r\n[--enable-log-file-validation | --no-enable-log-file-validation]\r\n[--cloud-watch-logs-log-group-arn \u003cvalue\u003e]\r\n[--cloud-watch-logs-role-arn \u003cvalue\u003e]\r\n[--kms-key-id \u003cvalue\u003e]\r\n[--is-organization-trail | --no-is-organization-trail]\r\n[--cli-input-json | --cli-input-yaml]\r\n[--generate-cli-skeleton \u003cvalue\u003e]\r\n[--debug]\r\n[--endpoint-url \u003cvalue\u003e]\r\n[--no-verify-ssl]\r\n[--no-paginate]\r\n[--output \u003cvalue\u003e]\r\n[--query \u003cvalue\u003e]\r\n[--profile \u003cvalue\u003e]\r\n[--region \u003cvalue\u003e]\r\n[--version \u003cvalue\u003e]\r\n[--color \u003cvalue\u003e]\r\n[--no-sign-request]\r\n[--ca-bundle \u003cvalue\u003e]\r\n[--cli-read-timeout \u003cvalue\u003e]\r\n[--cli-connect-timeout \u003cvalue\u003e]\r\nhttps://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloudtrail/update-trail.html\r\nPage 1 of 8\n\n[--cli-binary-format \u003cvalue\u003e]\r\n[--no-cli-pager]\r\n[--cli-auto-prompt]\r\n[--no-cli-auto-prompt]\r\n[--cli-error-format \u003cvalue\u003e]\r\nOptions¶\r\n--name (string) [required]\r\nSpecifies the name of the trail or trail ARN. If Name is a trail name, the string must meet the following\r\nrequirements:\r\nContain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)\r\nStart with a letter or number, and end with a letter or number\r\nBe between 3 and 128 characters\r\nHave no adjacent periods, underscores or dashes. Names like my-_namespace and my--\r\nnamespace are not valid.\r\nNot be in IP address format (for example, 192.168.5.4)\r\nIf Name is a trail ARN, it must be in the following format.\r\narn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail\r\n--s3-bucket-name (string)\r\n--s3-key-prefix (string)\r\nSpecifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log\r\nfile delivery. For more information, see Finding Your CloudTrail Log Files . The maximum length is\r\n200 characters.\r\n--sns-topic-name (string)\r\nSpecifies the name or ARN of the Amazon SNS topic defined for notification of log file delivery. The\r\nmaximum length is 256 characters.\r\n--include-global-service-events | --no-include-global-service-events (boolean)\r\nSpecifies whether the trail is publishing events from global services such as IAM to the log files.\r\n--is-multi-region-trail | --no-is-multi-region-trail (boolean)\r\nSpecifies whether the trail applies only to the current Region or to all Regions. The default is false. If\r\nthe trail exists only in the current Region and this value is set to true, shadow trails (replications of the\r\ntrail) will be created in the other Regions. If the trail exists in all Regions and this value is set to false,\r\nhttps://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloudtrail/update-trail.html\r\nPage 2 of 8\n\nthe trail will remain in the Region where it was created, and its shadow trails in other Regions will be\r\ndeleted. As a best practice, consider using trails that log events in all Regions.\r\n--enable-log-file-validation | --no-enable-log-file-validation (boolean)\r\nSpecifies whether log file validation is enabled. The default is false.\r\nNote\r\nWhen you disable log file integrity validation, the chain of digest files is broken after one hour.\r\nCloudTrail does not create digest files for log files that were delivered during a period in which log file\r\nintegrity validation was disabled. For example, if you enable log file integrity validation at noon on\r\nJanuary 1, disable it at noon on January 2, and re-enable it at noon on January 10, digest files will not\r\nbe created for the log files delivered from noon on January 2 to noon on January 10. The same applies\r\nwhenever you stop CloudTrail logging or delete a trail.\r\n--cloud-watch-logs-log-group-arn (string)\r\nSpecifies a log group name using an Amazon Resource Name (ARN), a unique identifier that represents\r\nthe log group to which CloudTrail logs are delivered. You must use a log group that exists in your\r\naccount.\r\nNot required unless you specify CloudWatchLogsRoleArn .\r\n--cloud-watch-logs-role-arn (string)\r\nSpecifies the role for the CloudWatch Logs endpoint to assume to write to a user’s log group. You must\r\nuse a role that exists in your account.\r\n--kms-key-id (string)\r\nSpecifies the KMS key ID to use to encrypt the logs and digest files delivered by CloudTrail. The value\r\ncan be an alias name prefixed by “alias/”, a fully specified ARN to an alias, a fully specified ARN to a\r\nkey, or a globally unique identifier.\r\nCloudTrail also supports KMS multi-Region keys. For more information about multi-Region keys, see\r\nUsing multi-Region keys in the Key Management Service Developer Guide .\r\nExamples:\r\nalias/MyAliasName\r\narn:aws:kms:us-east-2:123456789012:alias/MyAliasName\r\narn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012\r\n12345678-1234-1234-1234-123456789012\r\n--is-organization-trail | --no-is-organization-trail (boolean)\r\nhttps://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloudtrail/update-trail.html\r\nPage 3 of 8\n\nSpecifies whether the trail is applied to all accounts in an organization in Organizations, or only for the\r\ncurrent Amazon Web Services account. The default is false, and cannot be true unless the call is made\r\non behalf of an Amazon Web Services account that is the management account for an organization in\r\nOrganizations. If the trail is not an organization trail and this is set to true , the trail will be created in\r\nall Amazon Web Services accounts that belong to the organization. If the trail is an organization trail\r\nand this is set to false , the trail will remain in the current Amazon Web Services account but be\r\ndeleted from all member accounts in the organization.\r\nNote\r\nOnly the management account for the organization can convert an organization trail to a non-organization trail, or convert a non-organization trail to an organization trail.\r\n--cli-input-json | --cli-input-yaml (string) Reads arguments from the JSON string provided. The JSON\r\nstring follows the format provided by --generate-cli-skeleton . If other arguments are provided on the\r\ncommand line, those values will override the JSON-provided values. It is not possible to pass arbitrary binary\r\nvalues using a JSON-provided value as the string will be taken literally. This may not be specified along with --\r\ncli-input-yaml .\r\n--generate-cli-skeleton (string) Prints a JSON skeleton to standard output without sending an API request. If\r\nprovided with no value or the value input , prints a sample input JSON that can be used as an argument for --\r\ncli-input-json . Similarly, if provided yaml-input it will print a sample input YAML that can be used with --\r\ncli-input-yaml . If provided with the value output , it validates the command inputs and returns a sample\r\noutput JSON for that command. The generated JSON skeleton is not stable between versions of the AWS CLI and\r\nthere are no backwards compatibility guarantees in the JSON skeleton generated.\r\nGlobal Options¶\r\n--debug (boolean)\r\nTurn on debug logging.\r\n--endpoint-url (string)\r\nOverride command’s default URL with the given URL.\r\n--no-verify-ssl (boolean)\r\nBy default, the AWS CLI uses SSL when communicating with AWS services. For each SSL connection, the AWS\r\nCLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.\r\n--no-paginate (boolean)\r\nDisable automatic pagination. If automatic pagination is disabled, the AWS CLI will only make one call, for the\r\nfirst page of results.\r\n--output (string)\r\nhttps://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloudtrail/update-trail.html\r\nPage 4 of 8\n\nThe formatting style for command output.\r\njson\r\ntext\r\ntable\r\nyaml\r\nyaml-stream\r\noff\r\n--query (string)\r\nA JMESPath query to use in filtering the response data.\r\n--profile (string)\r\nUse a specific profile from your credential file.\r\n--region (string)\r\nThe region to use. Overrides config/env settings.\r\n--version (string)\r\nDisplay the version of this tool.\r\n--color (string)\r\nTurn on/off color output.\r\non\r\noff\r\nauto\r\n--no-sign-request (boolean)\r\nDo not sign requests. Credentials will not be loaded if this argument is provided.\r\n--ca-bundle (string)\r\nThe CA certificate bundle to use when verifying SSL certificates. Overrides config/env settings.\r\n--cli-read-timeout (int)\r\nThe maximum socket read time in seconds. If the value is set to 0, the socket read will be blocking and not\r\ntimeout. The default value is 60 seconds.\r\n--cli-connect-timeout (int)\r\nThe maximum socket connect time in seconds. If the value is set to 0, the socket connect will be blocking and not\r\ntimeout. The default value is 60 seconds.\r\nhttps://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloudtrail/update-trail.html\r\nPage 5 of 8\n\n--cli-binary-format (string)\r\nThe formatting style to be used for binary blobs. The default format is base64. The base64 format expects binary\r\nblobs to be provided as a base64 encoded string. The raw-in-base64-out format preserves compatibility with AWS\r\nCLI V1 behavior and binary values must be passed literally. When providing contents from a file that map to a\r\nbinary blob fileb:// will always be treated as binary and use the file contents directly regardless of the cli-binary-format setting. When using file:// the file contents will need to properly formatted for the configured\r\ncli-binary-format .\r\nbase64\r\nraw-in-base64-out\r\n--no-cli-pager (boolean)\r\nDisable cli pager for output.\r\n--cli-auto-prompt (boolean)\r\nAutomatically prompt for CLI input parameters.\r\n--no-cli-auto-prompt (boolean)\r\nDisable automatically prompt for CLI input parameters.\r\n--cli-error-format (string)\r\nThe formatting style for error output. By default, errors are displayed in enhanced format.\r\nlegacy\r\njson\r\nyaml\r\ntext\r\ntable\r\nenhanced\r\nExamples¶\r\nNote\r\nTo use the following examples, you must have the AWS CLI installed and configured. See the Getting started\r\nguide in the AWS CLI User Guide for more information.\r\nUnless otherwise stated, all examples have unix-like quotation rules. These examples will need to be adapted to\r\nyour terminal’s quoting rules. See Using quotation marks with strings in the AWS CLI User Guide .\r\nTo update a trail\r\nThe following update-trail example updates a trail to use an existing bucket for log delivery.\r\nhttps://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloudtrail/update-trail.html\r\nPage 6 of 8\n\naws cloudtrail update-trail \\\r\n --name Trail1 \\\r\n --s3-bucket-name amzn-s3-demo-bucket\r\nOutput:\r\n{\r\n \"IncludeGlobalServiceEvents\": true,\r\n \"Name\": \"Trail1\",\r\n \"TrailARN\": \"arn:aws:cloudtrail:us-west-2:123456789012:trail/Trail1\",\r\n \"LogFileValidationEnabled\": false,\r\n \"IsMultiRegionTrail\": true,\r\n \"S3BucketName\": \"amzn-s3-demo-bucket\"\r\n}\r\nOutput¶\r\nName -\u003e (string)\r\nSpecifies the name of the trail.\r\nS3BucketName -\u003e (string)\r\nSpecifies the name of the Amazon S3 bucket designated for publishing log files.\r\nS3KeyPrefix -\u003e (string)\r\nSpecifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log\r\nfile delivery. For more information, see Finding Your IAM Log Files .\r\nSnsTopicName -\u003e (string)\r\nThis field is no longer in use. Use SnsTopicARN .\r\nSnsTopicARN -\u003e (string)\r\nSpecifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications when log files\r\nare delivered. The following is the format of a topic ARN.\r\narn:aws:sns:us-east-2:123456789012:MyTopic\r\nIncludeGlobalServiceEvents -\u003e (boolean)\r\nSpecifies whether the trail is publishing events from global services such as IAM to the log files.\r\nIsMultiRegionTrail -\u003e (boolean)\r\nSpecifies whether the trail exists in one Region or in all Regions.\r\nhttps://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloudtrail/update-trail.html\r\nPage 7 of 8\n\nTrailARN -\u003e (string)\r\nSpecifies the ARN of the trail that was updated. The following is the format of a trail ARN.\r\narn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail\r\nLogFileValidationEnabled -\u003e (boolean)\r\nSpecifies whether log file integrity validation is enabled.\r\nCloudWatchLogsLogGroupArn -\u003e (string)\r\nSpecifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs are delivered.\r\nCloudWatchLogsRoleArn -\u003e (string)\r\nSpecifies the role for the CloudWatch Logs endpoint to assume to write to a user’s log group.\r\nKmsKeyId -\u003e (string)\r\nSpecifies the KMS key ID that encrypts the logs and digest files delivered by CloudTrail. The value is a\r\nfully specified ARN to a KMS key in the following format.\r\narn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012\r\nIsOrganizationTrail -\u003e (boolean)\r\nSpecifies whether the trail is an organization trail.\r\nSource: https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloudtrail/update-trail.html\r\nhttps://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloudtrail/update-trail.html\r\nPage 8 of 8",
	"extraction_quality": 1,
	"language": "EN",
	"sources": [
		"MITRE"
	],
	"references": [
		"https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloudtrail/update-trail.html"
	],
	"report_names": [
		"update-trail.html"
	],
	"threat_actors": [],
	"ts_created_at": 1775434118,
	"ts_updated_at": 1775791247,
	"ts_creation_date": 0,
	"ts_modification_date": 0,
	"files": {
		"pdf": "https://archive.orkl.eu/1f77dc3359ddfc1c38a8ff556ad30cb730c689a7.pdf",
		"text": "https://archive.orkl.eu/1f77dc3359ddfc1c38a8ff556ad30cb730c689a7.txt",
		"img": "https://archive.orkl.eu/1f77dc3359ddfc1c38a8ff556ad30cb730c689a7.jpg"
	}
}