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

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

停止 Amazon RDS 的快照共用

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

停止與 AWS 帳戶 共用手動資料庫快照
  1. 登入 AWS 管理主控台,開啟位於 https://console.aws.amazon.com/rds/ 的 Amazon 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 設為 restore) 和 ValuesToRemove 參數。若要將手動快照標示為私有,請從 all 屬性的值清單移除 restore 值。