通过嵌套云形成模板,S3桶替代

aws cloudformation create-stack –stack -name myteststack –template-body file:////home//local//test//sampletemplate.json

基于AWS Cloud Formation文档,我们可以使用嵌套云形成。 但是,它只是通过将模板JSONfile upload到S3存储桶来调用嵌套云形成模板。

有没有其他的方法来通过嵌套云形成模板? 像这样的东西(我猜…)

aws cloudformation create-stack --stack-name myteststack --template-body file:////home//local//test//main-template.json file:////home//local//test//nested-template.json 

据我所知这个function还没有。 CloudformationparsingAWS端的嵌套依赖关系,例如

 "Properties" : { "TemplateURL" : "https://s3.amazonaws.com/cloudformation-templates-us-east-1/S3_Bucket.template" 

如果您将其本地文件作为TemplateURL提供,AWS将无法在服务器端parsing此TemplateURL。