【发布时间】:2015-10-29 09:59:02
【问题描述】:
我正在尝试在 Cloudformation 中创建一个堆栈 - 我正在使用此处的 Windows 角色和功能示例模板:http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/sample-templates-applications-us-east-1.html
我一直在测试 cloudformation,看看它是否是我想尝试的东西。在启动堆栈时,我在创建“AWS::EC2::SecurityGroup”对象时一直遇到错误,原因是“此用户没有默认 VPC”
我目前有 1 个带有多个不同子网的 VPC。我在 JSON 中添加了一个部分来指定 VPC 和子网,但在创建堆栈时仍然出现此错误。这是我添加的内容:
“VpcId”:{ “类型”:“字符串”, “描述”:“您现有的虚拟私有云 (VPC) 的 VpcId” },
"Subnets" : {
"Type" : "CommaDelimitedList",
"Description" : "The list of SubnetIds, for at least two Availability Zones in the region in your Virtual Private Cloud (VPC)"
},
有人知道如何解决这个问题吗?或者我可能会错过什么。正如我所说,我实际上是在使用示例模板。谢谢
【问题讨论】:
标签: amazon-web-services amazon-ec2 amazon-cloudformation