Checks/Aws/Test-Ec2InstancePublicIp.ps1
|
function Test-Ec2InstancePublicIp { <# .SYNOPSIS EC2 instance does not have a public IP address .DESCRIPTION **EC2 instances** are assessed for the presence of a **public IPv4 address** and public DNS. A public IP indicates the instance is directly reachable from the Internet; no public IP implies access only through private networking paths such as load balancers, gateways, or proxies. .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: ec2_instance_public_ip [CIEMScanResult]::Create($Check, 'MANUAL', 'This check requires manual implementation. See Prowler check ec2_instance_public_ip for reference.', 'N/A', 'ec2 Resources') } |