headless-aws-sso-with-okta

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

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

Go to latest
Published: Dec 30, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

README

headless-aws-sso-with-okta

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/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:

headless-aws-sso-with-okta demo

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