I know this is old, but I needed to know the same information, and I managed to build the following, which would then give me the name of the snapshot. It doesnβt fully answer your question about resolutely searching for the last snapshot, but in this example it can give you some better directions.
aws rds describe-db-snapshots -db-instance-identifier prd -snapshot-type automatic -query "DBSnapshots [? SnapshotCreateTime> = '2017-06-05']. DBSnapshotIdentifier"
To break it with options
- db-instance-identifier (enter the name of the instance you are looking for) --snapshot-type (I automated the automatic search for backups) --query "DBSnapshots [? SnapshotCreateTime> = '2017-06-05']. DBSnapshotIdentifier" (This is what I used to refine my search, since we do daily backups, I just look for the time to take the snapshot more than today and giving .DBSnapshotIdentifier returns me only the name.
Hope this helps someone else.
source share