awsprofile

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

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

Go to latest
Published: Sep 8, 2020 License: MIT Imports: 9 Imported by: 0

README

awsprofile

Small and simple tool to set the current profile values for aws many CLI's

awsprofile

INSTALL

execute:

go build 

or get the binary from releases

copy awsprofile to somewhere in your $PATH in my case is $HOME/.local/bin then to change the active profile

$(awsprofile)
aws sts get-caller-identity

Alternatively you can make an alias and put it in your .bashrc .zshrc or .profile depending the linux flavor and config

alias switchaws='$(awsprofile);aws sts get-caller-identity'
  • NOTE: the get-caller-identity is for ensuring you are on the right account and avoid you to mistakenly switch to the wrong account

and you're ready !!!

Built With

Contribute

All contributions are welcome open an issue or make a pr!

License

This code is released under MIT license

Acknolewdements

This tool is inspired by @ivours a coworker and a friend of mine https://github.com/ivours/awsprofile

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