Skip to content

Commit

Permalink
Make awsprofile work with sso credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
Vidimensional committed Aug 29, 2024
1 parent 63a7867 commit be2462f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/awscli/files/awsprofile.bash
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This file is meant to be sourced from bashrc

_aws_list_profiles() {
grep '\[' ~/.aws/credentials | tr -d ']['
gawk '/^\[profile/ { gsub(/\]/, ""); print $2}' ~/.aws/config
}

awsprofile() {
Expand Down

0 comments on commit be2462f

Please sign in to comment.