gpt4 book ai didi

amazon-web-services - 使用 CloudFormation 脚本更新现有的 Eventbridge 规则以包含新目标

转载 作者:行者123 更新时间:2023-12-03 07:22:45 24 4
gpt4 key购买 nike

我有两个单独的应用程序需要更新 EventBridge 规则的目标。处理这个问题的最佳方法是什么?我应该创建一个具有相同源的单独的 EventBridge 规则,还是有办法在两个无服务器应用程序中更新实际的 EventBridge 规则而不会出现错误?

我尝试在两个应用程序中添加 EventBridge 规则,但它抛出一个错误,指出资源已存在。

为了形象化,我有以下内容:

diagram showing the current setup

最佳答案

你必须先import将现有 EB 规则放入 CloudFormation 堆栈中,然后才能对其进行修改。或者,您可以开发 custom resource无需导入即可修改规则。

关于amazon-web-services - 使用 CloudFormation 脚本更新现有的 Eventbridge 规则以包含新目标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71296859/

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