【发布时间】:2014-03-26 00:16:17
【问题描述】:
鉴于我有这个示例模板:
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Mappings" : {
"RegionMap" : {
"us-west-1" : { "AMI" : "ami-655a0a20" },
...
}
},
"Resources" : {
"Ec2Instance" : {
"Type" : "AWS::EC2::Instance",
"Properties" : {
...
},
"DependsOn" : "myDB"
},
"myDB" : {
"Type" : "AWS::RDS::DBInstance",
"Properties" : {
...
}
},
"myDB2" : {
"Type" : "AWS::RDS::DBInstance",
"Properties" : {
...
}
}
}
}
是否可以以任何方式指定多个 DependsOn? 有这样的想法会很棒:
"DependsOn" : ["myDB", "myDB2"]
正常的方式是什么?
【问题讨论】:
标签: json templates amazon-web-services amazon-cloudformation