0

我正在尝试使用 Cloudformation 部署网关负载均衡器端点,如下所示:

GWLEndpoint:
    Type: AWS::EC2::VPCEndpoint]
    Properties:
      VpcId: !Ref VPCID
      ServiceName: !Sub 'com.amazonaws.${AWS::Region}.s3'
      VpcEndpointType: GatewayLoadBalancer
      SubnetIds: !Ref PrivateSubnet
       

当我部署它时,我收到此错误:

Endpoint type (GatewayLoadBalancer) does not match available service types ([Gateway, Interface]). (Service: AmazonEC2; Status Code: 400; Error Code: InvalidParameter; Request ID: c7fd50ed-1588-4543-9aab-7377458b8a88; Proxy: null)

根据我在 AWS 文档中搜索的内容,GatewayLoadBalancerEnpoint 应该是有效的服务类型: https ://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html

任何人都知道为什么它无法部署?

4

0 回答 0