停止 Amazon 的快照共用 RDS - Amazon Relational Database Service

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

停止 Amazon 的快照共用 RDS

若要停止共用資料庫快照,請從目標 移除許可 AWS 帳戶。

若要停止與 共用手動資料庫快照 AWS 帳戶
  1. 登入 AWS Management Console 並在 開啟 Amazon RDS主控台https://console.aws.amazon.com/rds/

  2. 在導覽窗格中,選擇 Snapshots (快照)

  3. 選取您要停止共享的手動快照。

  4. 選擇 Actions (動作),然後選擇 Share snapshot (共用快照)。

  5. 若要移除 的許可 AWS 帳戶,請從授權 AWS 帳戶清單中,為該帳戶的帳戶識別碼選擇刪除

  6. 選擇儲存,以儲存變更。

若要從清單中移除 AWS 帳戶 識別符,請使用 --values-to-remove 參數。

範例 停止快照共用

下列範例可防止 AWS 帳戶 ID 444455556666 還原快照。

用於 Linux, macOS,或 Unix:

aws rds modify-db-snapshot-attribute \ --db-snapshot-identifier manual-snapshot1 \ --attribute-name restore \ --values-to-remove 444455556666

用於 Windows:

aws rds modify-db-snapshot-attribute ^ --db-snapshot-identifier manual-snapshot1 ^ --attribute-name restore ^ --values-to-remove 444455556666

若要移除 的共用許可 AWS 帳戶,請使用 ModifyDBSnapshotAttribute操作搭配 AttributeName 設定為 restoreValuesToRemove 參數。若要將手動快照標示為私有,請從 all 屬性的值清單移除 restore 值。