awslabs / awscli-aliases Goto Github PK
View Code? Open in Web Editor NEWRepository for AWS CLI aliases.
License: MIT No Attribution
Repository for AWS CLI aliases.
License: MIT No Attribution
QuickSight has an annoyance that it always requires the --aws-account-id
parameter.
qs =
!f() {
AWS_ACCOUNT_ID=$(sts get-caller-identity --query="Account" --output=text)
aws quicksight --aws-account-id="$AWS_ACCOUNT_ID" $*
}; f
Is there a good way to pass command line options to aliases using functions? This would be very useful in supporting multiple profiles, regions, etc. , just seems a bit out of step with the support in the CLI and SDK.
This is a great feature of the CLI, but it appears this repo has stagnated. Is there anyone managing this project?
While it's super-useful to add the "I need this now" feature, one needs some guidance to ensure some level of consistency.
Are there any other alias repos in existence?
Hi,
Awesome feature with the aliases, I really like it
Is there a way to get autocomplete for aliases, or will this be implemented later?
-Andreas Knifh
I've been a bit frustrated that I can't tab complete my aliases.
This test seems to indicate that it is by design, but why? https://github.com/aws/aws-cli/blob/3db7be30dfdd76f4e322b83b67af3134ae0b32ac/tests/functional/docs/test_help_output.py#L457
I am trying to use --profile
in my alias, but awscli is not forwarding it. It would also be acceptable for me if it instead set AWS_PROFILE
since that would make things work in most cases.
Example alias:
test-args =
!f() {
echo arguments: $*
echo profile: $AWS_PROFILE
}; f
Output:
$ aws test-args test --profile admin
arguments: test
profile:
$ aws test-args test --profile2 admin
arguments: test --profile2 admin
profile:
It would be great if I would get this result:
$ aws test-args test --profile admin
arguments: test
profile: admin
Thanks!
Edit: The same thing happens with --region
.
Hi there,
When I used echo
command in alias function, -n
option is not used by echo
as follows:
foo =
!f() {
echo -n 1
}; f
$ aws foo
-n 1
But, ls
command can use options successfully:
bar =
!f() {
ls
}; f
baz =
!f() {
ls -l
}; f
$ aws bar
file1 file2
$ aws baz
total 0
-rw-r--r-- 1 aibou staff 0 3 16 15:20 file1
-rw-r--r-- 1 aibou staff 0 3 16 15:20 file2
It seems a bug but I can't understand why ONLY echo
behave it...
In the following video (https://www.youtube.com/watch?v=Xc1dHtWa9-Q), there were three aliases that I thought were interesting.
aws authorize-my-ip
aws connect-ssh
aws auto-configure
What are the commands backing these aliases?
alias.ec2
, alias.s3
)Is there a way to append to subcommands like aws ec2
?
Thanks!
Hi there,
When I try to run command that have alias functions, I'm getting this:
'f' is not recognized as an internal or external command, operable program or batch file.
Do you know what might be the issue that I'm getting this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.