Checks/Aws/Test-DlmEbsSnapshotLifecyclePolicyExists.ps1
|
function Test-DlmEbsSnapshotLifecyclePolicyExists { <# .SYNOPSIS Region with EBS snapshots has at least one EBS snapshot lifecycle policy defined .DESCRIPTION **EBS snapshots** are expected to be governed by **Data Lifecycle Manager (DLM) policies** in each Region where snapshots exist. The evaluation looks for lifecycle policies that automate snapshot creation, retention, and cleanup for those snapshots. .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: dlm_ebs_snapshot_lifecycle_policy_exists [CIEMScanResult]::Create($Check, 'MANUAL', 'This check requires manual implementation. See Prowler check dlm_ebs_snapshot_lifecycle_policy_exists for reference.', 'N/A', 'dlm Resources') } |