skip to Main Content

I am using AWS Nodejs SDK to get RDS snapshots by

const snapshots = await rds.describeDBSnapshots().promise();

Its returning a different amount of snapshots from the AWS console with the same user. (Same access key / secret key)
In the UI i can view all the snapshots but the function from SDK is not returning the same amount

2

Answers


  1. Chosen as BEST ANSWER

    There are two functions describing RDS snapshots, RDS instances and RDS clusters.

    I was only using RDS instances to grab snapshots but the remaining were in the describe rds cluster snapshots function


  2. Is it returning more or less? (my guess is less) – are you sure its not paginating the return values for you?

    I believe this call defaults to returning a max of 100 records if you don’t specify, and if you have more than 100 would need to page thru the results with subsequent calls

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search