通过 Cloudformation 将配方分配给 Opsworks 中的生命周期事件
Assign the Recipes to LifeCycle Events in Opsworks by Cloudformation
在opsworks控制台的layer页面,我们可以为stack的生命周期事件配置Custom Chef Recipes。 (Here).
我正在创建一个 cloudformation 模板,用于创建所有 opsworks 堆栈、层、实例和应用程序,我也需要在模板中指定这些收据。那可能吗?
谢谢。
只需使用 CustomRecipes
property in the AWS::OpsWorks::Layer
资源即可:
"CustomRecipes" : {
"Setup" : ["cookbook1::setup","cookbook2::setup"],
"Configure" : ["settings::default"],
"Deploy": ["application12::deploy"]
},
在opsworks控制台的layer页面,我们可以为stack的生命周期事件配置Custom Chef Recipes。 (Here).
我正在创建一个 cloudformation 模板,用于创建所有 opsworks 堆栈、层、实例和应用程序,我也需要在模板中指定这些收据。那可能吗? 谢谢。
只需使用 CustomRecipes
property in the AWS::OpsWorks::Layer
资源即可:
"CustomRecipes" : {
"Setup" : ["cookbook1::setup","cookbook2::setup"],
"Configure" : ["settings::default"],
"Deploy": ["application12::deploy"]
},