Hi Mitch-
Noticed that a few commands don't print the correct name if you make an error in the usage:
$ aws elb register-instances-with-load-balancer
usage: aws elasticloadbalancing register-instances-with-load-balancer
--instances [INSTANCES [INSTANCES ...]] --load-balancer-name
LOAD_BALANCER_NAME
$ aws elasticloadbalancing register-instances-with-load-balancer
aws: error: argument service_name: invalid choice: 'elasticmapreduce' (choose from u'iam', u'ses', u'rds', u'elb', u'autoscaling', u'cloudwatch', u'sqs', u'cloudformation', u'elasticbeanstalk', u'sns', u'sts', u'directconnect', u'emr', u'ec2', 'help')
$ aws emr terminate-job-flows
usage: aws elasticmapreduce terminate-job-flows --job-flow-ids
[JOB_FLOW_IDS [JOB_FLOW_IDS ...]]
$ aws elasticmapreduce terminate-job-flows
aws: error: argument service_name: invalid choice: 'elasticmapreduce' (choose from u'iam', u'ses', u'rds', u'elb', u'autoscaling', u'cloudwatch', u'sqs', u'cloudformation', u'elasticbeanstalk', u'sns', u'sts', u'directconnect', u'emr', u'ec2', 'help')
Also, the u''
seems to be an artifact of python quoting, not sure if there's an easy way to fix that?
Cheers,
Nate
We are having trouble recreating this issue as described. It's kind of hard to know exactly where you were hitting tab for completion. Can you provide a bit more detail? Thanks
Hello,
I would like to close this issue due to inactivity.
Please feel free to reopen it or open a new issue if you continue to observe the same or related issue.
Thank you,
Peter
I ran into similar errors prompting of "invalid choice". After a pip install awscli --upgrade
problem solved. This makes believe that aws
was alias'd an outdated version for some reason.
$ aws
usage: aws [-h] [-v] {as,ec2,elb} ...
aws: error: too few arguments
$ aws --version
0.2.5
$ python --version
Python 2.7.8
$ aws help
usage: aws [-h] [-v] {as,ec2,elb} ...
aws: error: invalid choice: 'help' (choose from 'as', 'ec2', 'elb')
$ aws configure
usage: aws [-h] [-v] {as,ec2,elb} ...
aws: error: invalid choice: 'configure' (choose from 'as', 'ec2', 'elb')
$ pip install awscli --upgrade
...
...
$ aws help
$ aws --version
aws-cli/1.7.22 Python/2.7.8 Darwin/13.4.0
I had the same issue. Try pip install awscli
Thanks @vladiim , I made the same mistake: the aws
package does not seem to be endorsed by AWS.
awscli
is the correct one to install as mentioned in the docs.
had the same problem recently after trying aws-shell: pip uninstall aws*
&& pip install awscli
fixed it.
Most helpful comment
I ran into similar errors prompting of "invalid choice". After a
pip install awscli --upgrade
problem solved. This makes believe thataws
was alias'd an outdated version for some reason.