Checks/Aws/Test-IamSupportRoleCreated.ps1
|
function Test-IamSupportRoleCreated { <# .SYNOPSIS At least one IAM role has the AWSSupportAccess managed policy attached .DESCRIPTION Presence of an **IAM role** that has the AWS managed `AWSSupportAccess` policy attached, designating a support role for interacting with **AWS Support Center** and related tooling. .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: iam_support_role_created [CIEMScanResult]::Create($Check, 'MANUAL', 'This check requires manual implementation. See Prowler check iam_support_role_created for reference.', 'N/A', 'iam Resources') } |