Checks/Aws/Test-Ec2InstanceInternetFacingWithInstanceProfile.ps1
|
function Test-Ec2InstanceInternetFacingWithInstanceProfile { <# .SYNOPSIS EC2 instance is not internet-facing with an instance profile attached .DESCRIPTION **EC2 instances** with a public IP address and an attached **instance profile** (IAM role) are identified. Instances lacking public exposure or without an instance profile are excluded. .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_internet_facing_with_instance_profile [CIEMScanResult]::Create($Check, 'MANUAL', 'This check requires manual implementation. See Prowler check ec2_instance_internet_facing_with_instance_profile for reference.', 'N/A', 'ec2 Resources') } |