Created
February 14, 2019 14:49
-
-
Save rkreddyp/acae849a2e4ec9c3ee738627902e112e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get role and user dataframe with policies | |
(df, dfu) = iam_analyze.prepare_role_df() | |
display ( md(""" #### All Roles with Policy Full S3 Access """)) | |
dfu.AttachedManagedPolicies = dfu.AttachedManagedPolicies.astype(str) | |
dfs3 = dfu[dfu.AttachedManagedPolicies.str.contains("AmazonS3FullAccess", na=False) ] | |
display(HTML(dfs3.to_html(index=False, justify="left"))) | |
display ( md(""" #### All Roles with Policy Full Administrator Access """)) | |
dfu.AttachedManagedPolicies = dfu.AttachedManagedPolicies.astype(str) | |
dfs3 = dfu[dfu.AttachedManagedPolicies.str.contains("AdministratorAccess", na=False) ] | |
display(HTML(dfs3.to_html(index=False, justify="left"))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment