【发布时间】:2022-01-21 00:14:37
【问题描述】:
我已经将 subnetIds 作为列表传递,但仍然出现错误:
VpcEndpointSubnetIds:
Type: "List<AWS::EC2::Subnet::Id>"
Description: Select the subnet to associate with the VPC endpoint
Default: 'subnet-039c1ac2c0925fe94,subnet-0e9267fe210b042da'
VPCEndpointGateway:
Type: AWS::EC2::VPCEndpoint
Properties:
VpcId: !Ref VpcId
ServiceName: !Ref dynamoDbEndPointServiceName
VpcEndpointType: Gateway
PrivateDnsEnabled: true
SubnetIds:
-
!Ref VpcEndpointSubnetIds
SecurityGroupIds:
-
!Ref cacheSecurityGroup
不确定是什么导致了错误?我错过了什么吗?
更新: 修复间距问题后,现在出现错误:
Value of property {/SubnetIds/0} does not match type {String}
【问题讨论】:
标签: amazon-web-services amazon-cloudformation aws-sam