Why can't I delete my snapshot in Amazon Redshift?

2 minute read
1

I want to delete a snapshot of my Amazon Redshift cluster. However, I receive an error message that my snapshot is accessible by another AWS account.

Short description

If you try to delete a snapshot that shares access with another AWS account, then you might receive the following error message:

"Cannot delete the snapshot- xxx-xxx-xxx because other accounts still have access to it."

To resolve the error, remove the shared access from the account that created the cluster snapshot in Amazon Redshift. Then, delete your cluster snapshot.

Resolution

To use the Amazon Redshift console to delete a shared cluster snapshot, complete the following steps:

  1. Sign in to the AWS Management Console with the account that created the cluster snapshot.
  2. Open the Amazon Redshift console.
  3. In the navigation pane, choose Clusters.
  4. On the Clusters page, choose the snapshot that you want to delete.
  5. Choose Actions.
  6. To view the access settings for your cluster, choose Manage Access.
  7. To delete the shared access of your cluster snapshot, choose Remove Account.
  8. Delete your cluster snapshot.

Note: If you receive errors when you run AWS Command Line Interface (AWS CLI) commands, then see Troubleshoot AWS CLI errors. Also, make sure that you're using the most recent AWS CLI version.

To user the AWS CLI to delete a shared cluster snapshot, complete the following steps:

  1. To revoke the shared snapshot access, run the revoke-snapshot-access command:

    aws redshift revoke-snapshot-access --snapshot-id my-snapshot-id --account-with-restore-access <AWS-account-id-with-access>
  2. To delete your Amazon Redshift cluster snapshot, run the delete-cluster-snapshot command:

    aws redshift delete-cluster-snapshot --snapshot-identifier my-snapshot-id
AWS OFFICIAL
AWS OFFICIALUpdated 4 months ago