Created
April 13, 2025 12:10
-
-
Save sergray/fa324e972594200e6218219eb7ba597d to your computer and use it in GitHub Desktop.
Shell command for setting AWS_PROFILE with awsctx helper function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function awsctx() { | |
profile=$(aws configure list-profiles | fzf) | |
eval "export AWS_PROFILE=$profile" | |
echo "AWS_PROFILE=$(echo $AWS_PROFILE)" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment