Home > Software design >  AWS RDS SDK returning difference from AWS Console
AWS RDS SDK returning difference from AWS Console

Time:12-15

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

CodePudding user response:

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

CodePudding user response:

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

  • Related