Skip to main content

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


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)

Uploaded Source

Built Distribution

awsswitch-0.2.1-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page