The following works in version 1.10.28:
aws ec2 describe-instances --region=us-west-1 --filters "Name=tag:aws:autoscaling:groupName,Values=consul"
It does not work in 1.10.29. Instead, this result is returned:
A client error (InvalidParameterCombination) occurred when calling the DescribeInstances operation: The parameter 'maxResults' cannot be used with tag filters in the parameter 'filterSet'. Remove either the tag filters from 'filterSet' or the 'maxResults' parameter and try again.
Broken with: aws-cli/1.10.29 Python/2.6.9 Linux/4.4.8-20.46.amzn1.x86_64 botocore/1.4.20
A client error (InvalidParameterCombination) occurred when calling the DescribeVolumes operation: The parameter volumeSet cannot be used with the parameter maxResults
A client error (InvalidParameterCombination) occurred when calling the DescribeVolumes operation: The parameter volumeSet cannot be used with the parameter maxResults
Volume ID: vol-bce02671 State:
Volume vol-bce02671 is in and not available , exiting
But works with:
aws-cli/1.10.28 Python/2.6.9 Linux/4.4.8-20.46.amzn1.x86_64 botocore/1.4.19
Same problem here
Suddenly many of my cron jobs failed today after upgrading awscli to 1.10.29 with same error
aws ec2 describe-instances --filters "Name=tag:Name,Values=SMSMkt-Workers"
A client error (InvalidParameterCombination) occurred when calling the DescribeInstances operation: The parameter 'maxResults' cannot be used with tag filters in the parameter 'filterSet'. Remove either the tag filters from 'filterSet' or the 'maxResults' parameter and try again.
Me too
PS C:\> aws --version
aws-cli/1.10.29 Python/3.4.4 Windows/10 botocore/1.4.20
aws ec2 describe-instances --instance-ids i-AAAAAAAA
Produces...
A client error (InvalidParameterCombination) occurred when calling the DescribeInstances operation:
The parameter instancesSet cannot be used with the parameter maxResults
me too 馃槩
$ aws --version
aws-cli/1.10.29 Python/2.7.5 Linux/3.10.0-327.10.1.el7.x86_64 botocore/1.4.20
$ aws ec2 describe-instances --instance-ids "xxxxxxxxxx" --region "ap-northeast-1"
A client error (InvalidParameterCombination) occurred when calling the DescribeInstances operation: The parameter instancesSet cannot be used with the parameter maxResults
$ echo $?
255
me too.
# aws ec2 describe-instances --region ${REGION} --instance-ids ${INSTANCE_ID}
A client error (UnauthorizedOperation) occurred when calling the DescribeInstances operation: You are not authorized to perform this operation.
Change that's causing this issue has been reverted: https://github.com/aws/aws-cli/pull/1977
can confirm this has broken using filters in describe-instances
aws ec2 describe-instances --region eu-west-1 --filter 'Name=tag-key,Values=Name','Name=tag-value,Values=MYINSTANCE*' --output text
A client error (InvalidParameterCombination) occurred when calling the DescribeInstances operation: The parameter 'maxResults' cannot be used with tag filters in the parameter 'filterSet'. Remove either the tag filters from 'filterSet' or the 'maxResults' parameter and try again.
We've just released v1.10.30 of the CLI which reverts the change that caused this issue. Please upgrade to 1.10.30.
Going to go ahead and close out this issue. Let us know if anyone's still seeing issues on v1.10.30.
I'm seeing this error using the get_only_instances() function with boto.
Most helpful comment
Same problem here
Suddenly many of my cron jobs failed today after upgrading awscli to 1.10.29 with same error
aws ec2 describe-instances --filters "Name=tag:Name,Values=SMSMkt-Workers"
A client error (InvalidParameterCombination) occurred when calling the DescribeInstances operation: The parameter 'maxResults' cannot be used with tag filters in the parameter 'filterSet'. Remove either the tag filters from 'filterSet' or the 'maxResults' parameter and try again.