awsdefault-gtk3 UI
Usage
$ awsdefault-gtk3
this will start the UI. Each click will update the credentials file and close the application.
Note i3block was used for the status bar in this example. You can find the config in the doc folder. You will also need to install the cli version of awsdefault, for updating the text in the i3block.
If you need this window permanently open, add the parameter -permanent
and run:
$ awsdefault-gtk3 -permanent
Installation
Option 1 — Download binaries
precompiled binaries for Linux, Windows and MacOS are available at the [release] page.
curl
Option 2 — Compile it
Install the dependencies
- Go is required
- gtk3 is required
- clone this repository:
$ go get github.com/peterbueschel/awsdefault
$ go get github.com/go-ini/ini
Note if you get error messages like could not determine kind of name for ...
, check this issue report
$ go get github.com/gotk3/gotk3/gtk
- optional godebug; for testing via
go test ./...
$ go get github.com/kylelemons/godebug/pretty
Install the Go binary
Linux
$ cd $GOPATH/src/github.com/peterbueschel/awsdefault/cmd/awsdefault-gtk3/ && go install
if everything went well, the binary can now be found in the directory $GOPATH/bin
Set the environment variable AWS_PROFILE
to default
(aws userguide).
Linux
Add the following line to your .xinitrc, .zshrc or .bashrc file:
export AWS_PROFILE=default
Windows
TODO