Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"aws elasticache describe-snapshots" gives InvalidParameterValue error #759

Closed
quiver opened this issue Apr 26, 2014 · 2 comments
Closed
Labels
investigating This issue is being investigated and/or work is in progress to resolve the issue.

Comments

@quiver
Copy link
Contributor

quiver commented Apr 26, 2014

This may be a bug/feature of server side.

$ aws elasticache describe-snapshots --cache-cluster-id xxxx
A client error (InvalidParameterValue) occurred when calling the DescribeSnapshots operation: Cannot return more than 50 records per page.

If there are more than 50 records, this error message is reasonable. But the truth is that there are only a few snapshots.
If I specify --max-records, say 20, cli returns list of snapshots.

The API[1] says MaxRecords's default value is 50 and is not required. It would be great if --max-records is omitted from cli argument, the API server treats it as --max-records 50.

Tested with aws cli 1.3.8.

[1] http://docs.aws.amazon.com/AmazonElastiCache/latest/APIReference/API_DescribeSnapshots.html

@jamesls
Copy link
Member

jamesls commented Apr 28, 2014

From what I can tell you should not need to specify --max-records, and I've confirmed that the CLI is not sending any value for MaxRecords by default.

I'll follow up with the service team and update this issue when I have more info. Thanks for reporting.

@jamesls
Copy link
Member

jamesls commented Jul 21, 2014

The issue was a service side issue which has now been fixed.

@jamesls jamesls closed this as completed Jul 21, 2014
thoward-godaddy pushed a commit to thoward-godaddy/aws-cli that referenced this issue Feb 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigating This issue is being investigated and/or work is in progress to resolve the issue.
Projects
None yet
Development

No branches or pull requests

2 participants