Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services 什么是;“德彭森”:[]是指信息中的_Amazon Web Services_Aws Lambda_Amazon Cloudformation - Fatal编程技术网

Amazon web services 什么是;“德彭森”:[]是指信息中的

Amazon web services 什么是;“德彭森”:[]是指信息中的,amazon-web-services,aws-lambda,amazon-cloudformation,Amazon Web Services,Aws Lambda,Amazon Cloudformation,我使用的是AWS提供的模板,该模板在嵌套堆栈调用中使用“DependsOn”:[]。 我知道dependson可以有一个依赖项列表,但从来没有遇到过这个问题 BucketsStack": { "DependsOn": [], "Properties": { "Parameters": { "CreateDemonstration": { "Ref": "CreateDe

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

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

删除它,因为它是一个空数组,所以它是无用的

实际上,
DependsOn
会影响资源创建的顺序

下面是从

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

另见: