1

有没有办法在不更新参数的情况下触发自定义资源 lambda?当我更新堆栈而不进行更改时,它不会检测到要修改的资源。我正在考虑的唯一解决方案是使用带有随机值的无用参数来调用 lambda。

4

1 回答 1

1

A custom resource really should be something that only needs to be called when something changes. That's how CloudFormation works. If you really need to force it to "update" then what you are describing would work. Your code doesn't need to care or even know about the extra parameter. As long as the value changes the call to update it will be made.

于 2020-02-28T17:16:59.180 回答