Idan Fishman
343c78ae91
fix(aws): set properly set divider to space
...
Closes #11649
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
2023-04-27 11:51:04 +02:00
Roeniss Moon
9139d30ca3
feat(aws): allow more customisation in prompt function ( #11619 )
2023-04-19 15:46:10 +02:00
Mark Keisler
673b9fc331
feat(aws)!: improve aws_change_access_key
( #11378 )
...
BREAKING CHANGE: This commit removes compatibility for `aws` cli v1. Now only v2 is supported.
2023-04-18 10:36:07 +02:00
Carlo Sala
fcbdc330ff
fix(aws): restore accidentally deleted variable
...
Closes #11589
2023-03-28 17:03:03 +02:00
Carlo Sala
f9f01e48a8
fix(aws): do not print region if it's not defined
...
Closes #11568
Closes #11570
2023-03-21 16:06:45 +01:00
Yu Xiang Zhang
4a39779067
feat(aws): set region when AWS_REGION is not set
2023-03-21 16:06:45 +01:00
potato
46fd7972a2
feat(aws): add AWS_REGION to aws_prompt_info ( #10062 )
2023-03-07 13:33:16 +01:00
Noam Cohen
eb2147c715
feat(aws): load profiles from credentials file ( #11196 )
...
Fixes #8472
2023-01-13 14:35:30 +01:00
Hans Donner
0726c1099f
fix(aws): allow non-space characters in profile names ( #11040 )
2022-07-12 19:25:27 +02:00
Marc Cornellà
511ed65408
fix(aws): allow empty prefix and suffix in prompt function ( #10744 )
...
Fixes #10744
2022-02-28 10:03:02 +01:00
Mike Mattice
fe9d87d6dc
feat(aws): accept aws mfa tokencode on acp
cli call ( #10130 )
...
Co-authored-by: Mike Mattice <mmattice@reliant.io>
2022-01-19 15:58:34 +01:00
Marc Cornellà
1c53ef0583
fix(aws): quote % in aws_prompt_info
2022-01-03 13:58:14 +01:00
Nicholas Hawkes
bf303965e6
feat(aws): Adds the login option for AWS SSO ( #9921 )
2021-11-27 12:34:47 -08:00
Sergei Shvetsov
23f9348e2c
fix(aws): allow for profile switch w/o MFA configured ( #9924 )
2021-07-13 10:05:33 +02:00
Roman Danyk
ce836647e5
feat(aws): respect optional parameters from the AWS CLI config file ( #9453 )
2020-11-19 17:24:09 +01:00
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
2020-11-10 23:20:51 +01:00
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.
2020-11-04 22:10:22 +01:00
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
2020-10-29 22:13:36 +01:00
Setu Shah
77f7457051
aws: get and set session token if available ( #9397 )
2020-10-29 11:55:41 +01:00
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 "@"
2020-10-24 23:07:49 +02:00
Marc Cornellà
6ebf27b8d3
Revert "Remove redundant bashcompinit calls"
...
This reverts commit f776af2a1f
.
Fixes #9314
2020-10-05 17:20:02 +02:00
Marc Cornellà
f776af2a1f
Remove redundant bashcompinit calls
...
Fixes #9246
2020-09-30 19:00:51 +02:00
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.
2020-07-18 19:06:08 +02:00
Lutz Horn
d79941b789
aws: allow @ in AWS profiles ( #9099 )
...
Fixes #9060 by matching a `@` in the AWS profile name.
2020-07-09 10:43:59 +02:00
tom139
c686aa3dbb
aws: fix aws_change_access_key function with awscli v2 ( #8816 )
2020-04-26 12:28:24 +02:00
B YI
4c73584025
aws: fix awscli completion path on NixOS ( #8707 )
2020-03-09 17:07:34 +01:00
Marc Cornellà
1ef3d57739
aws: add support for AWS CLI v2 autocompletion ( #8670 )
...
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-03-05 17:13:46 +01:00
Marc Cornellà
dcffc89580
aws: fix array assignment in asp function
...
Older zsh versions require this syntax change.
Fixes #8525
2020-01-30 13:32:55 +01:00
Marc Cornellà
9930dd6e49
aws: use function keyword in function definitions
...
Fixes #7886
2019-05-28 15:33:02 +02:00
programmer04
1343ab67ed
aws: check availability of aws profiles ( #7839 )
2019-05-26 12:31:37 +02:00
Marc Cornellà
9598a855fa
aws: check for existence of config file in aws_profiles
...
Fixes #7872
2019-05-25 10:24:43 +02:00
Mohamed El Mouctar Haidara
4585c6662b
aws: really unset AWS*PROFILE variables in asp function ( #7838 )
2019-05-10 17:28:31 +02:00
dorons
d16adb6a9f
aws: fix path resolution of aws completion for Ubuntu ( #7812 )
2019-04-29 11:42:36 +02:00
programmer04
5f9cc016d7
Fix redundant export of RPROMPT in aws plugin
2019-04-09 21:07:42 +02:00
Marc Cornellà
5f893dcd20
aws: clean up aws_change_access_key function
2019-03-24 19:50:47 +01:00
Cristian Măgherușan-Stanciu
4f4985fddc
aws: added an alias for changing the AWS access key set on a profile
2019-03-24 19:50:41 +01:00
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
2019-03-24 19:46:27 +01:00
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>
2019-03-24 19:37:45 +01:00
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
2019-03-23 19:52:31 +01:00
Anton Stamenov
0cc1266c17
aws_porfiles regex is catching more lines than profiles, thus breaking completion ( #7469 )
2018-12-31 11:15:56 -08:00
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
2018-10-28 16:01:28 +01:00
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
2018-10-28 16:01:09 +01:00
Frank Wittig
e8aaab56b9
allow . in profile names
2018-05-16 18:01:09 +02:00
Hosh
e8c328cb39
Update AWS completion ( #6745 )
2018-05-10 20:53:16 +02:00
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
2017-11-07 08:03:54 -08:00
Alexey V Zapparov
7a63ccabf6
Fix aws plugin RPROMPT pollution
2015-09-04 21:18:32 +02:00
Robby Russell
04c301bb3a
Merge pull request #3975 from wernerb/patch-1
...
Set AWS_PROFILE and use existing RPROMPT
2015-06-14 22:10:18 -07:00
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.
2015-06-10 14:36:54 +02:00
Werner Buck
5770ad51f9
Set AWS_PROFILE and use existing RPROMPT
2015-06-09 16:52:40 +02:00
Superbil
7931d5ce1a
Fix aws.plugins.zsh check rule
...
Check _aws_zsh_completer_path had exist or not
2014-12-16 00:51:22 +08:00