【问题标题】:How to change RDS instance for Elastic Beanstalk如何更改 Elastic Beanstalk 的 RDS 实例
【发布时间】:2015-07-04 01:47:50
【问题描述】:

我已经设置了我的 Elastic Beanstalk 环境并允许它创建与之关联的 RDS 实例。

现在,我想将数据库实例更改为另一个实例,但如何在维护 RDS 端点的同时做到这一点?

谢谢!

【问题讨论】:

标签: postgresql amazon-web-services amazon-elastic-beanstalk


【解决方案1】:

假设您要连接到实例 A 并希望将其更改为实例 B,同时维护数据库端点。

你可以这样做:

  1. 使用aws rds create-db-snapshot 快照实例B。
  2. 使用aws rds delete-db-instance 删除实例A。
  3. 使用来自 B 的快照恢复 A,使用 aws rds restore-db-instance-from-db-snapshot

【讨论】:

    猜你喜欢
    • 2016-02-15
    • 2014-07-03
    • 2017-06-16
    • 2016-12-19
    • 2015-09-15
    • 2018-02-23
    • 1970-01-01
    • 2015-08-02
    • 1970-01-01
    相关资源
    最近更新 更多