Skip to main content

AWS SSO Manager

Project description

aws-sso-manager

License Issues

Simple AWS SSO Manager that makes authenticating between multiple profiles and roles a breeze.

Overview

aws-sso-manager is a simple cli to manage auth for aws sso accounts and roles.

Setup

pip3 install awsssomanager
or
poetry add awsssomanager

Config file

Create a config file. You can create a config file for each ssoDomain.

default:
    loginAccount: '1234567890'
    ssoDomain: 'myssodomain'
    region: 'us-east-1'

role_priority:
  - "ViewOnlyAccess"
  - "PowerUserAccess"
  - "PowerUserPlus"
  - "AdministratorAccess"

Configure ssoDomain

$ aws-sso-manager configure /path/to/config/file

All done!

Daily Operation

Whenever your tokens expire, you will need to run the command:

$ aws-sso-manager login

Easy Profiles

Profiles are automatically generated in the following formats and can be used directly after credentials are acquired:

<account_id>_<role_name>
<account_id>
<account_name>

Usage

$ AWS_PROFILE=<proile_name> aws s3 ls

Example

1234567890 = dev

$ AWS_PROFILE=dev aws s3 ls
$ AWS_PROFILE=1234567890 aws s3 ls
$ AWS_PROFILE=1234567890_AdministratorAccess aws s3 ls

Python

AWS_AIOSESSION = AioSession(profile='dev')
AWS_SESSION = Session(profile_name='dev')

Help :construction_worker:

Join us in discussions

I use GitHub Discussions to talk about all sorts of topics related to this repo.

Open an issue

First, check out the existing issues. If you spot something new, open an issue. We'll use the issue to have a conversation about the problem you want to fix, and I'll try to get to it as soon as I can.

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

awsssomanager-0.1.2.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

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

awsssomanager-0.1.2-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file awsssomanager-0.1.2.tar.gz.

File metadata

  • Download URL: awsssomanager-0.1.2.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Darwin/22.6.0

File hashes

Hashes for awsssomanager-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e9edce5d16244a7d7e3dee1774e168b0763ebac7a8386a09e59f1eb32cdc753f
MD5 9d99c454f03c96ed59db0899d2ecfd85
BLAKE2b-256 5a85c94ab26bb52ce1319040313bea2b759563a289ab6c38c5370e0b791889a0

See more details on using hashes here.

File details

Details for the file awsssomanager-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: awsssomanager-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Darwin/22.6.0

File hashes

Hashes for awsssomanager-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e60253aedcddfb16c61a9f7821b4b34ce89ffd5b2636ac9d1d4b36db90bf6538
MD5 d3eb48a35e9ca22ab5a138f868dc9f3e
BLAKE2b-256 9396422f3ad1bee7005130b79162db584a81f464d037b4971f2957f06ffda9e4

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