Last active
August 29, 2015 14:20
-
-
Save sgzijl/0b8eb93e76e6cf855fa0 to your computer and use it in GitHub Desktop.
ohmyzsh aws profile switcher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~ .aws/config (remove default profile, define region/output for each customer) | |
[profile customer_a] | |
region = eu-west-1 | |
output=text | |
[profile customer_b] | |
region = eu-west-1 | |
output=text | |
~ .aws/credentials (add credentials for each customer) | |
[customer_a] | |
aws_access_key_id = | |
aws_secret_access_key = | |
[customer_b] | |
aws_access_key_id = | |
aws_secret_access_key = | |
~ .zshrc (add aws to plugins=) | |
plugins=(git aws) | |
# Usage: | |
asp customer_a (set profile to customer_a) | |
agp (list current environment) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment