AWS::EC2::VPNConnectionRoute - 参数 route=X.X.X.67/31 验证功能失败

AWS::EC2::VPNConnectionRoute - Parameter route=X.X.X.67/31 fails its validation function

我有一个特定的 IP,我需要通过 VPN 进行路由。我尝试使用提供尽可能小的子网的掩码来提供该 IP。

    vpcConnection:
        Type: 'AWS::EC2::VPNConnectionRoute'
        Properties:
            DestinationCidrBlock: X.X.X.67/31
            VpnConnectionId:
                Ref: vpnRef

应用后,云层响应:

Parameter route=X.X.X.67/31 fails its validation function 

route=X.X.X.67/31会指向指定子网的广播地址

为了验证,DestinationCidrBlock CidrBlock 需要指向网络地址,在本例中为:

    vpcConnection:
        Type: 'AWS::EC2::VPNConnectionRoute'
        Properties:
            DestinationCidrBlock: X.X.X.66/31
            VpnConnectionId:
                Ref: vpnRef