juanitomint / awsprofile

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

License:MIT License


Languages

Language:Shell 42.7%Language:Go 21.9%Language:Dockerfile 17.8%Language:Makefile 17.6%