Cloudformation 'Recreate' 一个 RDS 实例。它会恢复数据吗?

Cloudformation 'Recreate' an RDS instance. Does it restore the data?

我有一个 RDS Postgres 实例,我想更改一个设置,要求将数据库重新创建为 Cloudformation 更新堆栈的一部分。具体来说,初始数据库是使用我想删除的 DBSnapshotIdentifier 创建的,但是从 Cloudformation 定义中删除这一行需要重新创建实例。

如果我这样做,新数据库是否会包含被替换数据库实例中的所有数据,还是会是一个空白的 RDS 实例?我假设它会恢复数据,但我只是想确定一下。

文档不是 100% 清楚,显然我需要确定会发生什么。

有人可以确认吗?

If I do this, will the new database have all of the data that was in the replaced database instance or will it be a blank RDS instance?

不,不会。堆栈更新完成后,新的 RDS 实例将为空。

我同意这在 AWS 文档中不是很清楚,但是 Update Behaviors of Stack Resources 确实在字里行间说明了这一点,因为它建议在堆栈更新之前创建一个快照以便能够恢复数据之后