【发布时间】:2019-04-13 14:11:11
【问题描述】:
我作为输入提供的 IP CIDR 在 Cloudformation 中似乎无效。 使用的IP:VPC(192.168.0.0/16) Subnets-192.168.0.0/24, 192.168.64.0/24,192.168.128.0/24,192.168.192.0/24
我尝试手动创建 VPC 并添加上面给出的子网,并且成功了。但是在 Cloudformation 中提供输入时同样不起作用。
参数和资源代码:
"PublicSubnet1CIDR": {
"Description": "Please enter the IP range (CIDR notation) for the public subnet in the first Availability Zone",
"Type": "String",
"Default": "192.168.0.0/24",
"AllowedPattern": "(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})/(\\d{1,2})",
"ConstraintDescription": "must be a valid IP CIDR range of the form x.x.x.x/x."
},
【问题讨论】:
标签: amazon-web-services amazon-cloudformation