Skip to main content

AWS profile switcher

Project description

awsswitch - AWS profile switcher

Easily switch between AWS Profiles.

PyPi PyPi

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 document 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.2.tar.gz (169.9 kB view details)

Uploaded Source

Built Distribution

awsswitch-0.2.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for awsswitch-0.2.2.tar.gz
Algorithm Hash digest
SHA256 0229568e576f86eca20f6e5e507ab264e50cde3af3766d1a54016d8c9129923f
MD5 1b7bbba7d91819f6e306b4bad18e8cb7
BLAKE2b-256 dfe4ec5a020832c51ef572e5aefe94e9d71923874ea434fb4301d687527ab241

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for awsswitch-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f5f4395443901900c8494a6e329f564fe85a978e119215e04e68e7203768cfbf
MD5 c0d75f649a8ee2c275ea4c1c6f178fa0
BLAKE2b-256 adf670868246a43e12508153ce199b048b8b432da18d9a928282f0642a4bdd24

See more details on using hashes here.

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