Checks/Aws/Test-CloudfrontDistributionsDefaultRootObject.ps1
|
function Test-CloudfrontDistributionsDefaultRootObject { <# .SYNOPSIS CloudFront distribution has a default root object configured .DESCRIPTION CloudFront distributions are evaluated for a configured **default root object** that maps `/` requests to a specific file such as `index.html`, rather than forwarding root requests directly to the origin. .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: cloudfront_distributions_default_root_object [CIEMScanResult]::Create($Check, 'MANUAL', 'This check requires manual implementation. See Prowler check cloudfront_distributions_default_root_object for reference.', 'N/A', 'cloudfront Resources') } |