Skip to content

Instantly share code, notes, and snippets.

@sgzijl
Last active August 29, 2015 14:20
Show Gist options
  • Save sgzijl/0b8eb93e76e6cf855fa0 to your computer and use it in GitHub Desktop.
Save sgzijl/0b8eb93e76e6cf855fa0 to your computer and use it in GitHub Desktop.
ohmyzsh aws profile switcher
~ .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