AWS credentials using SSO
This is a terminal tool to easly log in in AWS using SSO. Build with❤️in Golang
Table of Contents generated with DocToc
The purpose of this tool is to be able to obtain the credentials accesskey, secretkey, and token of the AWS accounts that your user has access to through SSO.
- Go (if you decide to install this tool using
go install
) - macOS: require Cgo, no dependency
- Linux: require X11 dev package. For instance, install libx11-dev or xorg-dev or libX11-devel to access X window system.
This libraries are necessary for the clipboard package (used in
aws-sso profile
command).
- Open your browser and log in using your external identity provider configured with AWS SSO (gmail for example if you use google workspaces as external idp)
- Install the tool using one of the ways described below
$ brew tap nanih98/aws-sso https://github.com/nanih98/aws-sso
$ brew install aws-sso
$ go install github.com/nanih98/aws-sso
Remember to put your GOPATH
in your PATH
variable:
$ echo $GOPATH
$ export PATH=$PATH:$GOPATH/bin # put this in your .bashrc or .zshrc if needed
OS | ARM64 | AMD64 |
---|---|---|
Mac | √ | √ |
Linux | √ | √ |
Read usage or type:
$ aws-sso usage
Pull requests are welcome! Any code refactoring, improvement, implementation...