Stopping snapshot sharing for Amazon RDS
To stop sharing a DB snapshot, you remove permission from the target Amazon Web Services account.
To stop sharing a manual DB snapshot with an Amazon Web Services account
Sign in to the Amazon Web Services Management Console and open the Amazon RDS console at https://console.amazonaws.cn/rds/
. -
In the navigation pane, choose Snapshots.
-
Select the manual snapshot that you want to stop sharing.
-
Choose Actions, and then choose Share snapshot.
-
To remove permission for an Amazon Web Services account, choose Delete for the Amazon account identifier for that account from the list of authorized accounts.
-
Choose Save to save your changes.
To remove an Amazon Web Services account identifier from the list, use the --values-to-remove
parameter.
Example of stopping snapshot sharing
The following example prevents Amazon Web Services account ID 444455556666 from restoring the snapshot.
For Linux, macOS, or Unix:
aws rds modify-db-snapshot-attribute \ --db-snapshot-identifier manual-snapshot1 \ --attribute-name restore \ --values-to-remove 444455556666
For Windows:
aws rds modify-db-snapshot-attribute ^ --db-snapshot-identifier manual-snapshot1 ^ --attribute-name restore ^ --values-to-remove 444455556666
To remove sharing permission for an Amazon Web Services account, use the ModifyDBSnapshotAttribute
operation with AttributeName
set to restore
and the ValuesToRemove
parameter. To
mark a manual snapshot as private, remove the value all
from the values list for the restore
attribute.