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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file awsswitch-0.2.1.tar.gz.

File metadata

  • Download URL: awsswitch-0.2.1.tar.gz
  • Upload date:
  • Size: 169.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.27.1

File hashes

Hashes for awsswitch-0.2.1.tar.gz
Algorithm Hash digest
SHA256 6677347368d087991779a137e9e8f8b9548b75e918b2dd8bed2d84552cda2b70
MD5 956985291f431a74b5a57cf2435afd85
BLAKE2b-256 1b646eb2e4c38554930801771c4a72d4d58bfaa57c2e57e196c3778aae543d9e

See more details on using hashes here.

File details

Details for the file awsswitch-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: awsswitch-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.27.1

File hashes

Hashes for awsswitch-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 869b34e5b309a3b45b1788bd2925d167c2f9862e9060c5210d1a28a18a9c3b27
MD5 448d6a979ab76c537a99478b1dfb7002
BLAKE2b-256 3007f6428005d5368bd190e4b9eaf1d83f49ff27040ae269d065fb7cf0a0d28c

See more details on using hashes here.

Supported by

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