【问题标题】:How to run Sceptre hook for ANY stack update (without having to define explicitly for every stack)如何为任何堆栈更新运行 Scepter 挂钩(无需为每个堆栈显式定义)
【发布时间】:2022-10-17 16:02:05
【问题描述】:

我有一个钩子,每次更新任何堆栈时我都想运行它。我知道我可以在每个堆栈的基础上定义一个挂钩,但我想在全局范围内定义一个挂钩,它将在更新时为我拥有的每个堆栈运行。

【问题讨论】:

    标签: amazon-web-services amazon-cloudformation sceptre


    【解决方案1】:

    根据你提到的; Scepter 文件夹结构的定义方式应使顶级config.yaml 呈现所有“全局”挂钩。

    config/
      - config.yaml               # This is the top-level Config for your whole project.
      - sceptre-dependencies.yaml # This stack defines your template for buckets, iam role, topics, etc...
      - project/                  # Put all your other project stacks inside
          - config.yaml           # project/
          - vpc.yaml              
          - other-stack.yaml
    

    StackGroup Config 也可能值得探索。见:https://docs.sceptre-project.org/latest/docs/stack_group_config.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-01-30
      • 2010-09-08
      • 1970-01-01
      • 2019-04-17
      相关资源
      最近更新 更多