1回答
- 新しい順
- 投票が多い順
- コメントが多い順
0
Hi Scott - The DbSnapshotIdentifier property is a "Replacement" property so whenever it is updated a new instance is created and previous instance destroyed. I'll walk through a brief scenario to hopefully explain.
- Create a cluster in a new stack without DbSnapshotIdentifier property - this will be a blank DB
- Update the stack with DbSnapshotIdentifier to restore from a snapshot - this will build a new db from the snapshot and destroy the previous instance
- Update the stack again with some other property keeping the previous DbSnapshotIdentifier value the same - no restore will be attempted as the DbSnapshotIdentifier property has not changed. It will not revert to the snapshot specified previously
- Update the stack again with a new DbSnapshotIdentifier property - this will build a new db from the new snapshot and destroy the previous instance
If you remove the DbSnapshotIdentifier property from the stack it will see that as a change and therefore build a new blank instance and destroy the previous. Therefore once you use the property once you need to keep using with either the old value to do nothing or a new value for a new restore
関連するコンテンツ
- 質問済み 6年前
- AWS公式更新しました 3年前
- AWS公式更新しました 2年前