amazon-cloudformation - aws cloudformation:Engine版本升级时如何防止Aurora RDS被替换?
问题描述
我们使用的是通过 Cloudformation 预置和配置的 Aurora RDS。这是模板中的相关片段:
Type: AWS::RDS::DBCluster
Properties:
DeletionProtection: true
Engine: aurora
EngineVersion: 5.6.1
现在我们要将引擎版本升级到 5.6.2。文档说 EngineVersion 上的更新需要替换,这意味着清除所有数据。 有没有办法安全地更新版本?
解决方案
Use aws rds modify-db-cluster
API in this case instead of depending on Cloudformation's "stack modification". Resource modification's that are marked as "requires Replacement" depends on the service to handle the replacement. It might be worth trying that on a test cluster - just to see how Aurora's cloudformation support handles it. But if this is a one time fix up, then I highly recommend against it. Just use the CLI, fix your cluster, and then fix your CFN templates. Hope this helps!
推荐阅读
- sql - BigQuery 查询超出资源限制。使用 OR 连接时
- c++ - 模板参数可以评估 c 风格的数组参数,但不能评估 std::array
- android - 安卓工作室 3.6.1 | 错误:“此项目使用 AndroidX 依赖项”
- javascript - TypeError: _this.props.addLead 不是函数
- jenkins - 泽西岛客户端:詹金斯重定向时身份验证失败
- angular - 反应形式构造函数中的多个相同的自定义验证器函数
- selenium - 无法从 browserstack 重播 https url 上的 selenium 测试
- c# - 处理从 / 到 html 的特殊字符编码
- git - 在 git 存储库中维护 AOSP 源代码的更好方法是什么
- bash - 在 bash 脚本的命令选项中使用两个问号之间的变量