amazon-web-services - 使用相同参数更新 CloudFormation 自定义资源
问题描述
有没有办法在不更新参数的情况下触发自定义资源 lambda?当我更新堆栈而不进行更改时,它不会检测到要修改的资源。我正在考虑的唯一解决方案是使用带有随机值的无用参数来调用 lambda。
解决方案
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.
推荐阅读
- amazon-ec2 - 如果我停止并重新启动我的 ec2 实例,我的 anaconda 安装会丢失吗?
- android - 如何在android中滚动时隐藏底部应用栏
- ios - 如何在图表中为 X 轴使用字符串值而不是双精度值?
- laravel - 找不到邮件的 Laravel 类
- mysql - 在mysql select语句中使用每2个字符后在字符串中添加连字符
- html - PowerBI Dashboard 聊天窗口自定义
- amazon-web-services - AWS Glue 中的错误:下载脚本时出错
- php - 使用刷新令牌续订后访问令牌相同
- javascript - React Native - MapView 中 UrlTile 的动态 URL
- couchbase - Couchbase 未为所有文档设置新属性