Skip to main content

aws-access-advisor

Overview

Generate IAM actions list from AWS Access Advisor reports.

Prerequisites

  • Python >= 3.6

  • [aws-ssooidc](https://pypi.org/project/aws-ssooidc/) >= 2021.1.1.1

  • [boto3](https://pypi.org/project/boto3/) >= 1.17.78

Required Arguments

  • AWS account ID

  • AWS entity ARN (role, user, etc. to use for report generation)

  • AWS SSO Permission Set (admin role) name for login purposes

  • AWS SSO login URL

Usage

Installation:

pip3 install aws-access-advisor
# or
python3 -m pip install aws-access-advisor

In Python3:

import aws_access_advisor as access

auth = access.login("<account_id>", "<sso_url>", "<admin_role_name>")
report = access.get_report(
   "<entity_role_arn>",
   auth["roleCredentials"]["accessKeyId"],
   auth["roleCredentials"]["secretAccessKey"],
   auth["roleCredentials"]["sessionToken"]
)
print(
   f'Job status: {report["JobStatus"]} after {report["processing_time"]} second(s).'
)
print('\n'.join(access.parse(report)))

In BASH:

python [/path/to/module/]__init__.py \
-a <account_id> \
-e <entity_role_arn> \
-r <admin_role_name> \  # [OPTIONAL]
-u <sso_url> \  # [OPTIONAL]
> <output_path>

Metadata

Release files for aws_access_advisor 2022.10.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aws_access_advisor 2022.10.1.3
File Size Uploaded Provenance Actions
aws_access_advisor-2022.10.1.3.tar.gz 3.0 kB Without provenance Details for aws_access_advisor-2022.10.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aws_access_advisor 2022.10.1.3
File Interpreter ABI Platform Actions
aws_access_advisor-2022.10.1.3-py3-none-any.whl Python 3 none any Details for aws_access_advisor-2022.10.1.3-py3-none-any.whl

Total release size: 6.1 kB

Release files / aws_access_advisor-2022.10.1.3.tar.gz

Download URL aws_access_advisor-2022.10.1.3.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
755ebd2f8e81efd395117cfe2d28ab0d8b4804057aeaf35e95da8efba81347c8
BLAKE2b-256 checksum
How to use checksums
943e8bc8c9371d8c0653eeafdfcecf7518eb76c04f2f47e86c457319bb0c1e20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.10.7 Linux/5.15.0-1020-azure

Release files / aws_access_advisor-2022.10.1.3-py3-none-any.whl

Download URL aws_access_advisor-2022.10.1.3-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2b06e9a7d6ec9de4b022b4a1b353c89afe279e8da5dfcd7a58f546e53219e7b5
BLAKE2b-256 checksum
How to use checksums
65929e5a2079999b0558f6ad4e0e9784b858bbbf9c5e5a2e93541e3c95cfb060
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.10.7 Linux/5.15.0-1020-azure

Security for aws_access_advisor 2022.10.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page