Checks/Aws/Test-CloudfrontDistributionsS3OriginNonExistentBucket.ps1
|
function Test-CloudfrontDistributionsS3OriginNonExistentBucket { <# .SYNOPSIS CloudFront distribution S3 origins reference existing buckets .DESCRIPTION **CloudFront distributions** with `S3OriginConfig` should reference existing **S3 bucket origins** (excluding static website hosting). Identifies origins where the configured bucket name does not exist. .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_s3_origin_non_existent_bucket [CIEMScanResult]::Create($Check, 'MANUAL', 'This check requires manual implementation. See Prowler check cloudfront_distributions_s3_origin_non_existent_bucket for reference.', 'N/A', 'cloudfront Resources') } |