Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature]: Fuzzy search through aws profiles for sso login #65

Open
1 task done
wesbragagt opened this issue Jun 24, 2024 · 0 comments
Open
1 task done

[feature]: Fuzzy search through aws profiles for sso login #65

wesbragagt opened this issue Jun 24, 2024 · 0 comments
Assignees
Labels
feature A new feature request triage Needs to be triaged

Comments

@wesbragagt
Copy link
Contributor

wesbragagt commented Jun 24, 2024

Prior Search

  • I have already searched this project's issues to determine if a similar request has already been made.

What new functionality would you like to see?

It would be cool to have a pf-login utility that uses Fzf to fuzzy select through a list of available AWS profiles. I built a script for my team and figured I'd share the idea.

How would you use this new functionality?

#!/usr/bin/env bash
# This is a utility script for facilitating selecting profiles when using aws sso login

set -e


profile_selected=$(cat $AWS_CONFIG_FILE | grep profile | sed 's/^\[profile \(.*\)\]/\1/' | fzf)

if [ -z "$profile_selected" ]; then
    echo "No profile selected"
    exit 1
fi

aws --profile $profile_selected sso login

pf-login-demo

@wesbragagt wesbragagt added feature A new feature request triage Needs to be triaged labels Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature request triage Needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants