【问题标题】:what does "DependsOn": [] means in cloudformation"DependsOn": [] 在 cloudformation 中是什么意思
【发布时间】:2017-12-04 19:37:45
【问题描述】:

我正在使用 AWS 提供的模板,该模板在嵌套堆栈调用中使用 "DependsOn": []。 我知道依赖可以有一个列表依赖,但从来没有遇到过。

BucketsStack": {
        "DependsOn": [],
        "Properties": {
            "Parameters": {
                "CreateDemonstration": {
                    "Ref": "CreateDemonstration"
                },

【问题讨论】:

标签: amazon-web-services aws-lambda amazon-cloudformation


【解决方案1】:

删除它,因为它是一个空数组,所以它没用。

确实DependsOn会影响资源创建的顺序。

以下来自official documentation

使用 DependsOn 属性,您可以指定创建一个 特定资源紧随其后。添加 DependsOn 属性时 对于资源,该资源仅在创建该资源之后创建 DependsOn 属性中指定的资源。

【讨论】:

    猜你喜欢
    • 2019-12-29
    • 2011-08-12
    • 2017-06-11
    • 2018-03-05
    • 2023-03-27
    • 2016-08-17
    • 2010-12-28
    • 2020-10-27
    • 2013-03-09
    相关资源
    最近更新 更多