我正在使用 ECS-CLI (0.4.5) 启动 CFN 模板,现在我尝试将 Aurora 集群放入 CFN 模板中,并通过 CFN SDK 使用变更集更新堆栈。
我不明白为什么它对我的子网感到不安。子网是由初始“ecs-cli up”调用创建的。它们与堆栈的其余部分位于同一 vpc 中,在我尝试部署变更集之前它们已经存在,并且它们位于不同的可用区(us-west-2b 和 us-west-2c)。
CFN 给我的唯一信息是“某些输入子网无效”。
CFN 故障:

子网:

我可以通过管理控制台创建具有完全相同子网的 DBSubnetGroup,没有任何问题。
关于可能出什么问题的任何想法吗?这是 CloudFormation 中的错误吗?让我知道是否需要更多信息来解决这个问题......老实说我很茫然
以下是我的初始模板(它内置于 ecs-cli 中):
"PubSubnetAz1": {
"Type": "AWS::EC2::Subnet",
"Properties": {
"VpcId": {
"Ref": "Vpc"
},
"CidrBlock": "10.0.0.0/24",
"AvailabilityZone": "us-west-2b"
}
},
"PubSubnetAz2": {
"Type": "AWS::EC2::Subnet",
"Properties": {
"VpcId": {
"Ref": "Vpc"
},
"CidrBlock": "10.0.1.0/24",
"AvailabilityZone": "us-west-2c"
}
},
"InternetGateway": {
"Type": "AWS::EC2::InternetGateway"
},
"AttachGateway": {
"Type": "AWS::EC2::VPCGatewayAttachment",
"Properties": {
"VpcId": {
"Ref": …Run Code Online (Sandbox Code Playgroud) subnet amazon-web-services amazon-ecs aws-cloudformation amazon-aurora
好吧,所以这应该是一个简单的问题,但我在编程方面相当新,我不能为我的生活弄清楚如何使用右键单击事件.我想要做的就是在我右键单击一个图片框时调用一个可以执行某些操作的事件.它不在事件工具栏中,我觉得自己像个白痴.任何帮助将不胜感激.我正在运行2010版本.
因此,我使用 ECS(通过 ecs-cli 创建)和 CloudFormation,但在创建自动缩放组时遇到问题:

它始终无法显示“LoadBalancer 附件不稳定”。有谁知道这可能是什么原因造成的?
我有两个 CloudFormation 堆栈,一个主要堆栈用于设置我的大部分基础设施,第二个堆栈(正在失败)用于第二个 ECS 集群。我正在从第一个/主堆栈的输出传递输入参数。
我想这可能是子网大小问题(它们在第一个堆栈中创建并传递到第二个堆栈,10.0.0.0/24 和 10.0.1.0/24),所以我尝试在第二个 cloudformation 中创建两个新子网模板并使用它们,但它导致了同样的错误。
在两个模板文件之间创建相同的自动缩放组和 ELB...
第一堆:
"InternetGateway": {
"Condition": "CreateVpcResources",
"Type": "AWS::EC2::InternetGateway"
},
"AttachGateway": {
"Condition": "CreateVpcResources",
"Type": "AWS::EC2::VPCGatewayAttachment",
"Properties": {
"VpcId": {
"Ref": "Vpc"
},
"InternetGatewayId": {
"Ref": "InternetGateway"
}
}
},
"RouteViaIgw": {
"Condition": "CreateVpcResources",
"Type": "AWS::EC2::RouteTable",
"Properties": {
"VpcId": {
"Ref": "Vpc"
}
}
},
"PublicRouteViaIgw": {
"Condition": "CreateVpcResources",
"DependsOn": "AttachGateway",
"Type": "AWS::EC2::Route",
"Properties": {
"RouteTableId": {
"Ref": "RouteViaIgw"
},
"DestinationCidrBlock": "0.0.0.0/0",
"GatewayId": …Run Code Online (Sandbox Code Playgroud) amazon-web-services amazon-elb aws-cloudformation autoscaling