简体   繁体   English

Cloudformation模板禁用嵌套模板的回滚

[英]Cloudformation Template Disable Rollback of Nested Template

I have a CloudFormation template that launches a nested stack template via a AWS::CloudFormation::Stack resource. 我有一个CloudFormation模板,它通过AWS :: CloudFormation :: Stack资源启动嵌套堆栈模板。 I was wondering if there is any way I could disable rollback for the nested stack? 我想知道是否有什么方法可以禁用嵌套堆栈的回滚?

You can disable it after the creation by setting it in the console or CLI 您可以在创建后通过在控制台或CLI中对其进行设置来禁用它

It appears that OnFailure and DisableRollback aren't specified in the docs as valid Properties within CF templates but did you try and add the to the template anyway? 似乎在文档中未将OnFailure和DisableRollback在CF模板中指定为有效属性,但是您是否尝试将其添加到模板中? ie

{
  "Type" : "AWS::CloudFormation::Stack",
  "Properties" : {
    "DisableRollback" : true
  }
}

Or YAML 或YAML

Type: "AWS::CloudFormation::Stack"
   Properties:
     DisableRollback: true

See here for API parameters that are a superset of the documented CF template properties 请参阅此处以获取已记录的CF模板属性的超集的API参数

http://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_CreateStack.html http://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_CreateStack.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM