aws-account-switcher

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2018 License: MIT Imports: 7 Imported by: 0

README

aws-account-switcher

Command tool to set aws account to environment variable easily from credentials.

Installation

Install via go runtime

$ go get github.com/ysugimoto/aws-acccount-switcher/...

Or, download prebuilt binary from Release page.

After that, you can use acs command.

Usage

acs accepts profile name of first argument, if supply it, loads and parse ~/.aws/credentials file and export as environment variable, so you can export it by using source command on osx/linux:

$ acs [profile name] | source -

If you don't supply any arguments, acs displays select interface:

$ acs | source -
default         : XXXXXXXXXXXX | YYYYYYYYYYYYYYYY
other-account   : AAAAAAAAAAAA | BBBBBBBBBBBBBBBB
...

You can choose account by cursor key or j(up)/k(down) key.

License

MIT

Author

Yoshiaki Sugimoto sugimoto@wnotes.net

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