Runs aws sso login headlessly when using the --no-browser
option.
We want to avoid leaving the terminal and opening yet another tab and having to click Next next next...
go install github.com/sayuthisobri/headless-sso@latest
aws sso login --profile pp --no-browser | headless-sso
Note: headless-sso
gets the AWS user credentials from a .netrc
file with the following format:
machine name has to be
headless-sso
machine headless-sso
login <username>
password <something-secret>
Example:
- Only works with hardware MFA/U2F - Need to read MFA code from stdin.
Working but Still WiP, Contributions welcome.
Apache-2.0