Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.
/ awsssolib Public archive

A library to help automate AWS SSO activities as it is still not supported by Boto

License

Notifications You must be signed in to change notification settings

schubergphilis/awsssolib

Repository files navigation

awsssolib

A library to help automate AWS SSO activities as it is still not supported by Boto

DEPRECATION WARNING

This library is now part https://github.com/schubergphilis/awsapilib and thus all development on this repo will stop.

The library supports below AWS SSO actions:

  1. Get Groups
  2. Get Users
  3. Get Accounts
  4. Create Permission Sets
  5. Assign custom policy to a permission set
  6. Update Permission sets
  7. Associate user/groups to an Account with a particular permission set
  8. Disassociate user/groups from an Account with a particular permission set

Below is a snippet on how to get started with the library:

import os
from awsssolib.awsssolib import Sso
os.environ['AWS_ACCESS_KEY_ID']=''
os.environ['AWS_SECRET_ACCESS_KEY']=''
os.environ['AWS_DEFAULT_REGION']=''
os.environ['AWS_SESSION_TOKEN']=''
sso_connection = Sso('arn:aws:iam::<<account_id>>:role/<<role_name>>')
for group in sso_connection.groups:
     print(group.name)

The role should have access to sso and sso-directory

About

A library to help automate AWS SSO activities as it is still not supported by Boto

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages