AWS profile switcher
Project description
awsswitch - AWS profile switcher
Easily switch between AWS Profiles
Credits
This is a pure python implementation of Johnny Opao's tool awsp
Prerequisites
Setup your profiles using the aws cli
aws configure --profile PROFILE_NAME
You can also leave out the --profile PROFILE_NAME
param to set your default
credentials
Refer to this doc for more information https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html
Setup
Install with pip
python -m pip install awsswitch
Install with pipx (recommended)
pipx install awsswitch
Shell configuration
Add the following to your .bashrc or .zshrc config:
alias awsp='awsswitch; sp="$(cat ~/.awsswitch)"; if [ -z "$sp" ]; then unset AWS_PROFILE; else export AWS_PROFILE="$sp";fi'
Usage
awsp
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
awsswitch-0.2.1.tar.gz
(169.7 kB
view hashes)
Built Distribution
Close
Hashes for awsswitch-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 869b34e5b309a3b45b1788bd2925d167c2f9862e9060c5210d1a28a18a9c3b27 |
|
MD5 | 448d6a979ab76c537a99478b1dfb7002 |
|
BLAKE2b-256 | 3007f6428005d5368bd190e4b9eaf1d83f49ff27040ae269d065fb7cf0a0d28c |