Checks/Aws/Test-CloudtrailCloudwatchLoggingEnabled.ps1
|
function Test-CloudtrailCloudwatchLoggingEnabled { <# .SYNOPSIS CloudTrail trail has delivered logs to CloudWatch Logs in the last 24 hours .DESCRIPTION **CloudTrail trails** are configured to send events to **CloudWatch Logs**, and show recent delivery within the last `24h`. Trails without integration or without recent CloudWatch delivery are identified, across single-Region and multi-Region trails. .PARAMETER Check CIEMCheck object containing check metadata. #> [CmdletBinding()] [OutputType([PSCustomObject[]])] param( [Parameter(Mandatory)] [CIEMCheck]$Check ) $ErrorActionPreference = 'Stop' # TODO: Implement check logic based on Prowler check: cloudtrail_cloudwatch_logging_enabled [CIEMScanResult]::Create($Check, 'MANUAL', 'This check requires manual implementation. See Prowler check cloudtrail_cloudwatch_logging_enabled for reference.', 'N/A', 'cloudtrail Resources') } |