Mike Mattice
fe9d87d6dc
feat(aws): accept aws mfa tokencode on `acp` cli call ( #10130 )
...
Co-authored-by: Mike Mattice <mmattice@reliant.io>
4 years ago
Marc Cornellà
1c53ef0583
fix(aws): quote % in `aws_prompt_info`
4 years ago
Nicholas Hawkes
bf303965e6
feat(aws): Adds the login option for AWS SSO ( #9921 )
4 years ago
Sergei Shvetsov
23f9348e2c
fix(aws): allow for profile switch w/o MFA configured ( #9924 )
5 years ago
Roman Danyk
ce836647e5
feat(aws): respect optional parameters from the AWS CLI config file ( #9453 )
5 years ago
Rob Vadai
1beac5958e
docs(aws): add config examples ( #9422 )
5 years ago
Marc Cornellà
dc4692b53e
fix(aws): fix acp function for MFA without role and other fixes ( #9426 )
...
* fix(aws): don't duplicate aws_prompt_info function in RPROMPT
* refactor(aws): clean up logic in acp function and fix session duration input
Fixes #9409
5 years ago
Maksym
3e6ee85a16
fix(aws): support MFA for profiles without role to assume ( #9411 )
...
Previously, the plugin only supported MFA for profiles that had a role to assume, specified in role_arn. Now, the plugin supports MFA for profiles without a role to assume.
Closes #9408
* refactor(aws plugin): remove dependency on jq
Previously, acp command relied on jq. Now that dependency has been removed, as well as some linter suggestions implemented.
5 years ago
Maksym
852a44094a
aws: split setting profile from changing profile ( #9402 )
...
the change to assume a role when it is specified in configuration broke some workflows. This fix addresses that
Fixes #9394
5 years ago
Setu Shah
77f7457051
aws: get and set session token if available ( #9397 )
5 years ago
Maksym
fcb6fa78a1
aws: add role delegation and MFA support as per IAM Best Practices ( #8419 )
...
* Added role delegation support and MFA support as per IAM Best Practices
* fix: grep with color enabled breaks profile parsing
* fix: compatible with MacOS basic sed
* docs: Added jq as a dependency
* feat: added variable session duration, if the role to be assumed permits it.
* bug: incorrect assigment for session length
* fix: profile extraction failed with some versions of sed
Fixed the issue that resulted from merging upstream changes to allow "." in the profile name
* fix: broken profile parsing when profile name contains "@"
5 years ago
Marc Cornellà
6ebf27b8d3
Revert "Remove redundant bashcompinit calls"
...
This reverts commit f776af2a1f .
Fixes #9314
6 years ago
Marc Cornellà
f776af2a1f
Remove redundant bashcompinit calls
...
Fixes #9246
6 years ago
Amir Tahvildaran
db3d05fe71
aws: improve check for aws_completer - unhardcode path ( #9123 )
...
Closes #9122
The current check is assuming that the aws_completer is installed
globally, it then runs the command without that path
I have aws_completer in ~/.local/bin/aws_completer
This changes the check to see if the command exists instead of
concerning itself with where it in installed. This test matches the
behavior of just running the command.
6 years ago
Lutz Horn
d79941b789
aws: allow @ in AWS profiles ( #9099 )
...
Fixes #9060 by matching a `@` in the AWS profile name.
6 years ago
tom139
c686aa3dbb
aws: fix aws_change_access_key function with awscli v2 ( #8816 )
6 years ago
B YI
4c73584025
aws: fix awscli completion path on NixOS ( #8707 )
6 years ago
Marc Cornellà
1ef3d57739
aws: add support for AWS CLI v2 autocompletion ( #8670 )
...
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
6 years ago
Marc Cornellà
dcffc89580
aws: fix array assignment in asp function
...
Older zsh versions require this syntax change.
Fixes #8525
6 years ago
Marc Cornellà
9930dd6e49
aws: use function keyword in function definitions
...
Fixes #7886
7 years ago
programmer04
1343ab67ed
aws: check availability of aws profiles ( #7839 )
7 years ago
Marc Cornellà
9598a855fa
aws: check for existence of config file in aws_profiles
...
Fixes #7872
7 years ago
Mohamed El Mouctar Haidara
4585c6662b
aws: really unset AWS*PROFILE variables in asp function ( #7838 )
7 years ago
dorons
d16adb6a9f
aws: fix path resolution of aws completion for Ubuntu ( #7812 )
7 years ago
programmer04
5f9cc016d7
Fix redundant export of RPROMPT in aws plugin
7 years ago
Marc Cornellà
63291f4fcc
Reword and fix formatting
7 years ago
programmer04
53d6a692d1
Fix showing aws prompt for theme fishy (append RPROMPT instead of overwrite)
7 years ago
Marc Cornellà
6d143d42ea
aws: document aws_change_access_key and fix README
7 years ago
Marc Cornellà
5f893dcd20
aws: clean up aws_change_access_key function
7 years ago
Cristian Măgherușan-Stanciu
4f4985fddc
aws: added an alias for changing the AWS access key set on a profile
7 years ago
Logan Lindquist
8cbdd79517
aws: set AWS_EB_PROFILE for the EB CLI ( #7388 )
...
Added AWS_EB_PROFILE environment variable to the AWS Plugin. The EB CLI uses this
variable instead of the primary AWS_PROFILE variable to keep track of what profile
it is using.
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-configuration.html
7 years ago
David Kane
532a784b80
aws: refactor AWS plugin ( #7615 )
...
* Update the AWS plugin to support disabling RPROMT display:
Use a $SHOW_AWS_PROMPT option.
* Refactoring aws plugin:
Exposing customizable aws_prompt_info function to be used in themes.
* Set aws prompt prefix and suffix to original values and fix README
Co-authored-by: "Vassilis S. Moustakas" <vsmoustakas@gmail.com>
7 years ago
Marc Cornellà
1a2d930bca
aws: refactor completion sourcing logic ( #7364 )
...
* Clean up Homebrew detection and add comments. Also changed some if flags.
* Detect aws cli completion file from RPM
7 years ago
Anton Stamenov
0cc1266c17
aws_porfiles regex is catching more lines than profiles, thus breaking completion ( #7469 )
7 years ago
Jorge Vargas
543044efe3
aws: use AWS_CONFIG_FILE to complete profiles
...
Stop exporting AWS_HOME and use the standard AWS_CONFIG_FILE environment
variable, with a fallback to ~/.aws/config (default location) if not
defined.
Close #7356
7 years ago
Vargas, Jorge L
e4946ef9f9
aws: change AWS_DEFAULT_PROFILE to AWS_PROFILE
...
The environment variable name used to be AWS_DEFAULT_PROFILE but the
CLI documentation now only mentions AWS_PROFILE.
https://docs.aws.amazon.com/cli/latest/userguide/cli-environment.html
It seems like the CLI was the only tool using AWS_DEFAULT_PROFILE, and
all the AWS SDKs used AWS_PROFILE, so they standardized on it.
https://onetechnical.wordpress.com/2016/10/07/the-curious-case-of-aws_default_profile/
Note: still left AWS_DEFAULT_PROFILE on the method to set the profile to
maintain backwards compatibility.
Close #7354
7 years ago
Jorge Luis Vargas Aguilar
684feffc35
aws: add README ( #7357 )
7 years ago
Frank Wittig
e8aaab56b9
allow . in profile names
8 years ago
Hosh
e8c328cb39
Update AWS completion ( #6745 )
8 years ago
T0mK0
9d6b6c5ce1
speed up chruby plugin by eliminating(as much as possible) calls to brew ( #6080 )
...
* speed up chruby plugin by eliminating(as much as possible) calls to brew
* speed up aws plugin by eliminating(as much as possible) calls to brew
8 years ago
Alexey V Zapparov
7a63ccabf6
Fix aws plugin RPROMPT pollution
11 years ago
Andrew Purcell
41104f8af8
Fix homebrew directory in aws plugin.
...
Sometimes the output of ``homebrew --prefix`` and ``homebrew --prefix
awscli`` don't match, and the second is the correct call.
11 years ago
Werner Buck
5770ad51f9
Set AWS_PROFILE and use existing RPROMPT
11 years ago
Superbil
7931d5ce1a
Fix aws.plugins.zsh check rule
...
Check _aws_zsh_completer_path had exist or not
11 years ago
Matt Walker
87fb118dd2
Changed brew cmd to properly report if awscli is installed via homebrew
12 years ago
Douglas S.D. Hall
f492207329
Amended to source the original aws_zsh_completer.sh rather than
...
the mangled version installed into $(brew-prefix)/bin if using
homebrew installed awscli on OSX.
This was discussed here - https://github.com/Homebrew/homebrew/issues/30268
12 years ago
Cristian Măgherușan-Stanciu
190fcdffa7
Added a completion plugin for the new aws-cli tool
...
It also supports quickly switching AWS profiles defined in
~/.aws/config using the asp alias
13 years ago