c686aa3dbb30704b2f8f52bf1aae19a7e41c23c1

Author
tom139 <tom139@users.noreply.github.com>
Committer
GitHub <noreply@github.com>
Date

Message

aws: fix aws_change_access_key function with awscli v2 (#8816)

Diff

 1diff --git a/plugins/aws/aws.plugin.zsh b/plugins/aws/aws.plugin.zsh
 2index 6fa8362ca944931ac5ef007afa1a8ad8a7930bc2..4b5446407fd8214797b9aa40352e76c84d63b39a 100644
 3--- a/plugins/aws/aws.plugin.zsh
 4+++ b/plugins/aws/aws.plugin.zsh
 5@@ -31,12 +31,12 @@ function aws_change_access_key() {
 6 
 7   echo Insert the credentials when asked.
 8   asp "$1" || return 1
 9-  aws iam create-access-key
10-  aws configure --profile "$1"
11+  AWS_PAGER="" aws iam create-access-key
12+  AWS_PAGER="" aws configure --profile "$1"
13 
14   echo You can now safely delete the old access key running \`aws iam delete-access-key --access-key-id ID\`
15   echo Your current keys are:
16-  aws iam list-access-keys
17+  AWS_PAGER="" aws iam list-access-keys
18 }
19 
20 function aws_profiles() {