headless-aws-sso-with-okta
Runs aws sso login headlessly when using the --no-browser
option.
Background
We want to avoid leaving the terminal and opening yet another tab and having to click Next next next...
Install
To download the latest release, run:
For ARM systems, please change ARCH to arm64
curl --silent --location https://github.com/ekesken/headless-aws-sso-with-okta/releases/latest/download/headless-aws-sso-with-okta_0.1.0_$(uname -s)_x86_64.tar.gz | tar xz -C /tmp/
sudo mv /tmp/headless-aws-sso-with-okta /usr/local/bin
Alternatively:
go install github.com/ekesken/headless-aws-sso-with-okta@latest
Windows: Download latest Windows binary from the Releases Page and unzip to location in PATH
Usage:
aws sso login --profile login --no-browser | ./headless-aws-sso-with-okta "${USERNAME}" "${PASSWORD}" "$(oathtool -b --totp ${MFA_SECRET})"
Example:
Release Notes:
Working but still WiP, contributions welcome.
License:
Apache-2.0