Checks/Aws/Test-Ec2TransitgatewayAutoAcceptVpcAttachments.ps1
|
function Test-Ec2TransitgatewayAutoAcceptVpcAttachments { <# .SYNOPSIS Amazon EC2 Transit Gateway does not automatically accept shared VPC attachments .DESCRIPTION **EC2 Transit Gateways** with `AutoAcceptSharedAttachments=enable` automatically approve cross-account **VPC attachments**. The evaluation identifies transit gateways configured to auto-accept shared attachments. .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_transitgateway_auto_accept_vpc_attachments [CIEMScanResult]::Create($Check, 'MANUAL', 'This check requires manual implementation. See Prowler check ec2_transitgateway_auto_accept_vpc_attachments for reference.', 'N/A', 'ec2 Resources') } |