RDS:如何使用 terraform 脚本将副本 (MariaDB) 提升为独立的数据库实例?
RDS: How to promote a replica (MariaDB) to be a standalone DB instance using terraform script?
我使用 terraform 模块,terraform-aws-modules/rds/aws(版本:2.20.0)配置了 MariaDB 主服务器和副本服务器。我想将副本提升为独立的数据库实例。 https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ReadRepl.html 上的文档提供了如何通过 AWS 控制台执行此操作的说明。我想用 terraform 脚本来做。任何人都知道如何使用 terraform 脚本将副本提升为独立的数据库实例?我的 terraform 版本是 v01.3.5.
我猜你通过 terraform 获得了只读副本资源。
来自文档:
Removing the replicate_source_db attribute from an existing RDS
Replicate database managed by Terraform will promote the database to a
fully standalone database.
您可以在那里设置一个条件来打开和关闭它。
我使用 terraform 模块,terraform-aws-modules/rds/aws(版本:2.20.0)配置了 MariaDB 主服务器和副本服务器。我想将副本提升为独立的数据库实例。 https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ReadRepl.html 上的文档提供了如何通过 AWS 控制台执行此操作的说明。我想用 terraform 脚本来做。任何人都知道如何使用 terraform 脚本将副本提升为独立的数据库实例?我的 terraform 版本是 v01.3.5.
我猜你通过 terraform 获得了只读副本资源。
来自文档:
Removing the replicate_source_db attribute from an existing RDS Replicate database managed by Terraform will promote the database to a fully standalone database.
您可以在那里设置一个条件来打开和关闭它。