在审查了许多堆栈之后,我仍然很难过。尝试创建将引用现有 VPC ID 并添加新子网并不断收到语法错误的 cloudformation 脚本。有什么想法吗?
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Resources" : {
"mySubnet" : {
"Type" : "AWS::EC2::Subnet",
"Properties" : {
"VpcId" : { "Ref" : "VPC" },
"CidrBlock" : "10.0.0.0/24",
"AvailabilityZone" : "us-east-1a",
}
}
}
}