Metadata-Version: 2.1
Name: aws-org-tree
Version: 0.3.0
Summary: 
Home-page: https://github.com/iainelder/aws-org-tree
Author: Iain Samuel McLean Elder
Author-email: iain@isme.es
Requires-Python: >=3.8,<4
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: anytree (>=2.8.0,<3.0.0)
Requires-Dist: boto3 (>=1.18.50,<2.0.0)
Requires-Dist: boto3-stubs[organizations] (>=1.21.42,<2.0.0)
Requires-Dist: logdecorator (>=2.2,<3.0)
Requires-Dist: matplotlib (>=3.5.1,<4.0.0)
Requires-Dist: mypy-boto3-organizations (>=1.26.83,<2.0.0)
Requires-Dist: networkx (>=2.8,<3.0)
Requires-Dist: urllib3 (<2)
Project-URL: Repository, https://github.com/iainelder/aws-org-tree
Description-Content-Type: text/markdown

# aws-org-tree

Prints a text tree representation of an AWS organization.

```bash
aws-org-tree
```

```text
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.

```bash
poetry run aws-org-tree --node-name-format "{Type} {Email}"
```

```text
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
```

## TODO

* Use [orgtreepubsub](https://github.com/iainelder/orgtreepubsub) to crawl the org and model the resources
* Allow templating to pull out all attributes of all resources

## Other formats

I removed the JSON tree (`json-tree`) and flat JSON formats (`json-flat`) formats Use [version `0.2.0`](https://github.com/iainelder/aws-org-tree/tree/0.2.0) if you need those.

