AWS code-library documentation change
Summary
Added PowerShell V5 examples for Update-CTTrail cmdlet including logging configuration updates
Security assessment
Documents security-related configurations like global service event logging and SNS notifications, but does not address specific vulnerabilities
Diff
diff --git a/code-library/latest/ug/cloudtrail_example_cloudtrail_UpdateTrail_section.md b/code-library/latest/ug/cloudtrail_example_cloudtrail_UpdateTrail_section.md index ded7b7c23..cc199d7b4 100644 --- a//code-library/latest/ug/cloudtrail_example_cloudtrail_UpdateTrail_section.md +++ b//code-library/latest/ug/cloudtrail_example_cloudtrail_UpdateTrail_section.md @@ -72,0 +73,26 @@ PowerShell +**Tools for PowerShell V5** + + +**Example 1: Updates the specified trail so that global service events (such as those from IAM) are recorded and changes the common key prefix of the log files going forwards to be 'globallogs'.** + + + Update-CTTrail -Name "awscloudtrail-example" -IncludeGlobalServiceEvents $true -S3KeyPrefix "globallogs" + + +**Example 2: Updates the specified trail so notifications about new log deliveries are sent to the specified SNS topic.** + + + Update-CTTrail -Name "awscloudtrail-example" -SnsTopicName "mlog-deliverytopic2" + + +**Example 3: Updates the specified trail so logs are delivered to a different bucket.** + + + Update-CTTrail -Name "awscloudtrail-example" -S3BucketName "otherlogs" + + + * For API details, see [UpdateTrail](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. + + + +