Skip to main content

Run AWS administrative scripts.

Project description

Overview

Run AWS administrative scripts.

Available scripts (see each script’s docstring for more information):

  • aws_actions_get - Get AWS actions for services.

  • aws_sgs_get - Collect AWS Security Group details from multiple accounts.

  • aws_sso_assign - Assign AWS SSO Permission Sets to multiple accounts.

  • aws_sso_get - Collect AWS SSO Permission Set assignment data from multiple accounts.

  • aws_sso_json - Convert human-readable SSO data to AWS IDs.

  • aws_sso_mappings - Update AWS SSO mappings data with new principals.

  • aws_sso_memberships - Get AWS SSO membership details from mappings data.

  • aws_sso_update - Update AWS SSO User and Group names from mappings files.

  • aws_s3_getbuckets - List S3 buckets in AWS accounts.

  • aws_vpc_getvpcs - Collect AWS VPC details from multiple accounts.

Helper modules:

  • helper_aws_iam - Provide common AWS IAM multithreaded functions.

  • helper_aws_ec2 - Provide common AWS EC2 multithreaded functions.

  • helper_aws_sso - Provide common AWS SSO multithreaded functions.

  • helper_aws_s3 - Provide common AWS S3 multithreaded functions.

  • helper_aws_entrypoint - Provide AWS auth and crawler options.

  • helper_common - Provide common helper functions.

  • helper_parameters - Provide helper parameter values.

Usage

Installation:

pip3 install aws_administrator
# or
python3 -m pip install aws_administrator

Prerequisite steps:

  1. Copy the “parameters.ini” file: https://gitlab.com/fer1035_python/modules/pypi-aws_administrator/-/blob/main/src/aws_administrator/extras/parameters.ini to your current working directory.

  2. Update the file with the necessary values. To specify a value for a parameter, add the value in the following format: PARAMETER_NAME = VALUE. The examples for this is available for the DRY_RUN and THREAD_NUM parameters.

Example (Python shell):

# Get AWS SSO Permission Set details from all accounts in an organization.

from aws_administrator import aws_sso_get
aws_sso_get.aws_sso_get()

Extra Features

  • Some scripts have a DRY_RUN option which can be set in the “parameters.ini” file.

  • The number of threads (THREAD_NUM) for multithreaded scripts can be set in the “parameters.ini” file.

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

aws_administrator-2.4.2.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

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

aws_administrator-2.4.2-py3-none-any.whl (27.0 kB view details)

Uploaded Python 3

File details

Details for the file aws_administrator-2.4.2.tar.gz.

File metadata

  • Download URL: aws_administrator-2.4.2.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/5.15.154+

File hashes

Hashes for aws_administrator-2.4.2.tar.gz
Algorithm Hash digest
SHA256 ba2c3d1f64c4a2582646ff666c08c95db4cb7f9f26624329a428a5406995fd46
MD5 7d31aedc0caee2d108a0fd89e078b18c
BLAKE2b-256 53331cb95fb911529ff6d096c2ee4473cdb4d5b556df6b13fd4ac1ae91375812

See more details on using hashes here.

File details

Details for the file aws_administrator-2.4.2-py3-none-any.whl.

File metadata

  • Download URL: aws_administrator-2.4.2-py3-none-any.whl
  • Upload date:
  • Size: 27.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/5.15.154+

File hashes

Hashes for aws_administrator-2.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0de6d081ea8986d4f6bf99ce4604990173bc7e8192da6e721e99ae7da9f837df
MD5 ff65aa5dc1cf8995f56e14bf0a64b9ae
BLAKE2b-256 8d5fbc8e1488e4e06706a5ae7fcda71b422e9eb0780fe1276c567300aa4e61ae

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