Skip to main content

AWS Identity Center Permission Sets Switcher

Project description

awspss

AWS Identity Center Permission Sets Switcher

한국어

Interactively select an AWS Account and Permission Set after SSO login, and the temporary credentials are automatically set in your current shell.

awspss demo

Installation

pip / pipx

pip install awspss

# or pipx (isolated environment)
pipx install awspss

Homebrew

brew tap boseung-code/tap
brew install awspss

From source

git clone https://github.com/boseung-code/awspss.git
cd awspss
pip install -e .

Setup

1. Register shell function

Shell function registration is required for awspss login and awspss sw to set credentials directly in your current shell.

eval "$(awspss init)"

This will:

  1. Detect your shell rc file (.bashrc or .zshrc)
  2. Ask for confirmation
  3. Register to rc file + activate immediately in current shell

Duplicate registration is prevented. New terminals will activate automatically.

To register manually, add to your .bashrc or .zshrc:

eval "$(awspss init --print)"

2. Configure SSO connection

awspss configure

Prompts for start-url and region interactively. You can also pass them directly:

awspss configure --start-url https://your-org.awsapps.com/start --region ap-northeast-2

Usage

Login

awspss login

Always performs a fresh SSO authentication via browser. After authentication, select Account → Permission Set and credentials are set in your current shell.

Switch credentials

awspss sw

Switch to a different Account/Permission Set using cached token (no re-login). Automatically re-authenticates if the token has expired.

Without shell function (eval)

eval $(awspss login)
eval $(awspss sw)

Verify credentials

aws sts get-caller-identity
aws s3 ls
terraform plan

Clear credentials

awspss unset

Commands

Command Description
awspss init Register shell function (auto-add to rc file + activate)
awspss init --print Print shell function only (for manual setup)
awspss configure Configure SSO connection
awspss login SSO login (always re-authenticates)
awspss sw Switch account/permission set (uses cached token)
awspss unset Clear AWS credentials from current shell

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

awspss-0.2.0.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

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

awspss-0.2.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file awspss-0.2.0.tar.gz.

File metadata

  • Download URL: awspss-0.2.0.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for awspss-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8d02ed55de43ee55c4942d11ec498e4d386896280489fe6b9abc52ee1395b71b
MD5 6c4d3443085eb050d5c50a9a0160c85e
BLAKE2b-256 20cf9a4f423dce68f55d6b86368255467b1319f19934d6b24c1a60c7d6a816f0

See more details on using hashes here.

File details

Details for the file awspss-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: awspss-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for awspss-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e3eca0486dd3f2637e71c5583a694624ae7fb767ab47aee19c2f8043d0d09c47
MD5 51cfe7acfbb1d44077c98edccba8dfda
BLAKE2b-256 2929941a1539bfe28b967a93a1fe8c867e96f5fc5fcb2a54135ebc310cf968ac

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