Checks/Aws/Test-CloudformationStacksTerminationProtectionEnabled.ps1
|
function Test-CloudformationStacksTerminationProtectionEnabled { <# .SYNOPSIS CloudFormation stack has termination protection enabled .DESCRIPTION **AWS CloudFormation root stacks** are evaluated for **termination protection**. The detection identifies whether `termination protection` is enabled to block stack deletions on non-nested stacks. .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: cloudformation_stacks_termination_protection_enabled [CIEMScanResult]::Create($Check, 'MANUAL', 'This check requires manual implementation. See Prowler check cloudformation_stacks_termination_protection_enabled for reference.', 'N/A', 'cloudformation Resources') } |