gpt4 book ai didi

amazon-web-services - "DependsOn": [] means in cloudformation 是什么意思

转载 作者:行者123 更新时间:2023-12-03 07:47:18 26 4
gpt4 key购买 nike

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

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

最佳答案

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

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

以下内容来自official documentation

With the DependsOn attribute you can specify that the creation of a specific resource follows another. When you add a DependsOn attribute to a resource, that resource is created only after the creation of the resource specified in the DependsOn attribute.

关于amazon-web-services - "DependsOn": [] means in cloudformation 是什么意思,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47632458/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com