本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
停止 Amazon RDS 的快照共用
若要停止共用資料庫快照,請從目標移除許可 AWS 帳戶。
停止與 共用手動資料庫快照 AWS 帳戶
登入 AWS 管理主控台 ,並在 https://console.aws.amazon.com/rds/
:// 開啟 Amazon RDS 主控台。 -
在導覽窗格中,選擇 Snapshots (快照)。
-
選取您要停止共享的手動快照。
-
選擇 Actions (動作),然後選擇 Share snapshot (共用快照)。
-
若要移除 的許可 AWS 帳戶,請從授權 AWS 帳戶清單中選擇刪除該帳戶的帳戶識別符。
-
選擇儲存,以儲存變更。
若要從清單中移除 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 值。