Open donnemartin opened 8 years ago
s3api list-buckets
works fine, as you point out.
The docs are pretty clear about the proper syntax, I just wasn't picking up on the syntax, for thickheaded reasons :)
Throwing a "The aws
command is not required" message to any command starting with "aws" might help guide people, but really, I should have RTFM.
Throwing a "The aws command is not required" message to any command starting with "aws" might help guide people, but really, I should have RTFM.
I think this is an interesting suggestion. I'm not sure you're alone in not reading manuals :)
Curious to hear how users feel about not requiring aws
.
IMHO the aws
, if present, should just be stripped out so that one can, say, copy-paste commands from the net with ease.
Another idea I briefly discussed with @jamesls is introducing the concept of prefix scope, which will allow users to specify what prefix(es) will be automatically added. A new .command (for now let's call it .cs
for 'change scope') would work like this:
aws> .cs !
> ls
my-local-file.txt
...
> aws s3 ls
2015-12-31 12:00:00 my-s3-bucket
...
> .cs aws
aws> s3 ls
2015-12-31 12:00:00 my-s3-bucket
...
aws> .cs aws s3
aws s3> ls
2015-12-31 12:00:00 my-s3-bucket
...
aws s3> .cs aws ec2
aws ec2> describe-instances
...
I think it'd be nice to also add a config variable for setting the default scope when aws-shell starts up.
@petermoon I agree. This is essentially what's been requested here https://github.com/awslabs/aws-shell/issues/87
Cool idea!
Cisco CLI works this way in some effect.
Although it seems like e1ven is reporting broken commands, I think the following report actually shows some confusion with not having to prefix commands with
aws
. Muscle memory could be an issue for veteran users. Also, I'd suspect you won't always have aws-shell up (maybe you're ssh'd into multiple EC2 machines doing various things which might/might not include aws-cli-backed-commands). The command syntax difference betweenaws-cli
andaws-shell
could lead to confusion in these cases.Reddit Source
Note:
s3api list-buckets
works for me.