我在AWS中有一个RDS数据库,主用户已被删除。我的terraform计划仅显示它将更改密码。 (由于删除了用户,因此我为主用户提供了一个随机密码)。现在,当我应用Terraform计划时,它将删除并重新创建数据库吗?
我对terraform为什么说只更改密码的猜测,因为可以通过控制台看到主用户名。而且该数据库是导入的资源。
请让我知道您在这种情况下的见解,因为它是生产数据库,所以我想100%确保它不会删除并重新创建数据库。
16:55:22 data.aws_subnet_ids.subnet_groups: Refreshing state...
16:55:22 aws_db_subnet_group.xxx_subnet_group: Refreshing state... (ID: ****xxxx-name-dbsg)
16:55:22 aws_db_instance.xxxx: Refreshing state... (ID: ****xxxx)
16:55:22
16:55:22 ------------------------------------------------------------------------
16:55:22
16:55:22 An execution plan has been generated and is shown below.
16:55:22 Resource actions are indicated with the following symbols:
16:55:22 ~ update in-place
16:55:22
16:55:22 Terraform will perform the following actions:
16:55:22
16:55:22 ~ module.rds.aws_db_instance.xxxxx
16:55:22 password: <sensitive> => <sensitive> (attribute changed)
16:55:22
16:55:22
16:55:22 Plan: 0 to add, 1 to change, 0 to destroy.