Skip to main content

No project description provided

Project description

aws-org-tree

Prints a text tree representation of an AWS organization.

aws-org-tree
Root (r-p74l)
├── isme-root-zcskbx (039444814027)
├── Sandbox (ou-p74l-a2llanp8)
└── Security (ou-p74l-094nw8v7)
    ├── Log Archive (386884128156)
    └── Audit (466721047587)

Use the --node-name-format option to print different properties of the resources. This part doesn't work well yet because different resources have different properties. If the property is missing the property name is used as a placeholder.

aws-org-tree --node-name-format "{Type} {Email}"
ROOT Email
├── ACCOUNT iain+awsroot+zcskbx@isme.es
├── ORGANIZATIONAL_UNIT Email
└── ORGANIZATIONAL_UNIT Email
    ├── ACCOUNT iain+awsroot+zcskbx+log-archive@isme.es
    └── ACCOUNT iain+awsroot+zcskbx+audit@isme.es

Installation

Prerequisite: Python 3.12 at least.

Recommended: pipx, which installs the tool in an isolated virtualenv while linking the script you need.

Install using pipx (recommended because it uses an isolated virtualenv to avoid dependency conflicts with other Python things you may have).

pipx install aws-org-tree

Or install using pip.

pip install --user aws-org-tree

Learn to use it.

aws-org-tree --help

Development

Install Python 3.12.

Install Poetry via Pipx.

Clone the repo.

Run poetry install.

Hack away.

Run quality checks with poetry run pre-commit run --all-files.

Install quality checks as pre-commit checks with poetry run pre-commit install.

Read the testing README.

Continuous integration and deployment

Push to any branch to run the tests on every commit via GitHub Actions.

Push an annotated tag of the form x.y.z (semantic version) to publish a GitHub release and publish the package distributions to PyPI if the tests pass. It may work on any branch but please only do it on the main branch.

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_org_tree-0.5.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

aws_org_tree-0.5.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file aws_org_tree-0.5.0.tar.gz.

File metadata

  • Download URL: aws_org_tree-0.5.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for aws_org_tree-0.5.0.tar.gz
Algorithm Hash digest
SHA256 5cbc2dfae269f92c1cfb0534fc67b2fc143509ad9a41eb20314e331cb447ffbc
MD5 279097924dc89f6edcb128785fd8840d
BLAKE2b-256 0f7f00e549d6cfa22e5f46a03931b75fbf9d816b9538821c158cc0026dc97247

See more details on using hashes here.

Provenance

The following attestation bundles were made for aws_org_tree-0.5.0.tar.gz:

Publisher: publish.yaml on iainelder/aws-org-tree

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aws_org_tree-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: aws_org_tree-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for aws_org_tree-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6ca5c57e1b4e1b12a7dc94d1db086b675f32883f5bf50c0dc18bd16f1f2a4f3c
MD5 06828abaa38f17e382a752abe56b6fbc
BLAKE2b-256 1a6467f77af381e519ca8d4986c6f136f12a90fb6be5207c4b990681e9e33d55

See more details on using hashes here.

Provenance

The following attestation bundles were made for aws_org_tree-0.5.0-py3-none-any.whl:

Publisher: publish.yaml on iainelder/aws-org-tree

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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