0
votes

enter image description here

RDS: my-sql

What am I trying to achieve: Trying to delete a RDS snapshot through CLI.

What command did I use:
aws rds delete-db-snapshot --db-snapshot-identifier test

Error Message: An error occurred (DBSnapshotNotFound) when calling the DeleteDBSnapshot operation:DBSnapshot not found: test

Does it work with other CLI commands: Yes

CLI Version : Latest,updated just 2 days ago

Is the snapshot in available mode: yes

2
Does aws rds describe-db-snapshots actually show the 'test' snapshot? Are you running against the correct region? - jarmod
yes it does list 2 snap shots - Rangesh Prasanna Venkatesan
Odd, it works fine here. I see the symptoms you describe if I re-run the command after deleting the test snapshot, but that's to be expected. - jarmod
I just added a screen shot, anyhow both the instances are for test and educational purposes. - Rangesh Prasanna Venkatesan

2 Answers

1
votes

You need to provide the snapshot identifier when deleting snapshots. You have been mistakenly providing the DB instance identifier ('test').

By the way, 'true' and 'false' are probably bad choices of name for a snapshot identifier.

-1
votes
  1. Is test snapshot Manual or Automatic ?

  2. Is your CLI accessing same AWS Account as your AWS Console. Probably good idea would be that firstly on CLI try to LIST all snapshots.