Skip to content

Instantly share code, notes, and snippets.

@sergray
Created April 13, 2025 12:10
Show Gist options
  • Save sergray/fa324e972594200e6218219eb7ba597d to your computer and use it in GitHub Desktop.
Save sergray/fa324e972594200e6218219eb7ba597d to your computer and use it in GitHub Desktop.
Shell command for setting AWS_PROFILE with awsctx helper function
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