我从CFT1调用CFT2并且我传递了一个参数列表.我最近知道我们不能通过逗号分隔的参数列表,所以我正在寻找如何实现该解决方案.这是我的CFT1:
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Top Stack",
"Resources": {
"ChildStack01": {
"Type" : "AWS::CloudFormation::Stack",
"Properties" : {
"TemplateURL": "https://s3.amazonaws.com/tbdchef/frontend1.json",
"Parameters": {
"AvailabilityZone1a": {
"Default": "us-east-1a",
"Description": "us-east-1a",
"Type": "String"
},
"AvailabilityZone1b": {
"Default": "us-east-1b",
"Description": "us-east-1b",
"Type": "String"
},
"ChefDevSNSTopic": {
"Description": "ARNforSNSTopic",
"Type": "String",
"Default": "arn:aws:sns:us-east-1:093937234853:Enterprise_Monitoring_SNS_Horizontal"
}
},
"TimeoutInMinutes" : "5"
}
}
}
}
Run Code Online (Sandbox Code Playgroud)
我得到的错误:
Value of property Parameters must be an object with String (or simple type) properties
Run Code Online (Sandbox Code Playgroud)
有没有办法将这些值传递给CFT2?