headless-sso

command module
v0.0.0-...-bdd2828 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

README

headless-sso

Runs aws sso login headlessly when using the --no-browser option.

Go Reference Go Report Card

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/mziyabo/headless-sso/releases/latest/download/headless-sso_0.2.0_$(uname -s)_x86_64.tar.gz | tar xz -C /tmp/
 sudo mv /tmp/headless-sso /usr/local/bin

Alternatively:

go install github.com/mziyabo/headless-sso@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-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:

headless-sso demo

Limitations:

  • Only works with hardware MFA. This means the case were MFA isn't used or is done by inputting the MFA token is presently unhandled.

Release Notes:

Working but still WiP, contributions welcome.

License:

Apache-2.0

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL