aws-sso-util-0.1.1 is not a library.
aws-sso-util
It's a simple utility to help you fast switch between AWS SSO profiles.
Prerequisites
- Works only on Linux and MacOS
- You need to have the
~/.aws/config
file with the AWS SSO profiles. - You need to have the
~/.aws/sso/cache
after login withaws sso login
command.
Features
- Can fuzzy search for AWS SSO profiles, it is looking into the
~/.aws/config
file. - Can generate credentials given the profile name including
AWS_ACCESS_KEY_ID
,AWS_SECRET_ACCESS_KEY
,AWS_SESSION_TOKEN
; - Can generate the AWS Console URL for the profile.
Installation
Usage
Examples
Given you have the following ~/.aws/config
file:
[profile first_profile]
sso_session = some_session_name
region = us-west-1
sso_account_id = 123456789012
sso_role_name = AdministratorAccess
output = json
[profile second_profile]
...
[profile fifth_profile]