aws-intel
aws-intel is a command-line tool for retrieving useful information from AWS.
The project is in its initial development stage.
Requirements
- Python 3.10 or newer
- Poetry
Development
Install the project and its development dependencies:
poetry install
Run the CLI:
poetry run awsi --help
Commands follow this structure:
awsi <utility> <options>
List all available utilities and their descriptions, or show detailed help for one utility:
awsi help
awsi help security-group-tree
For example:
awsi security-group-tree sg-0123456789abcdef0
security-group-tree recursively displays security groups, their attached
resources, IPv4 and IPv6 ranges, and managed prefix lists connected through
inbound and outbound rules. Each connection is prefixed with its protocol and
port or port range and its direction, such as tcp 443 from 10.0.0.0/8 for an
inbound rule or udp 1000-2000 to 10.0.0.0/8 for an outbound rule. Attached
resources are grouped under Assigned to, inbound connections under Sources,
and outbound connections under Targets. Resource discovery includes
AWS-managed network interfaces. Resource Name tags are displayed when
available, with existing descriptions or IDs used as fallbacks. This requires
permission to call ec2:DescribeNetworkInterfaces and ec2:DescribeTags.
Referenced security groups are displayed as sg-0123456789abcdef0 (name) so
the rule's actual source or target identifier appears before its descriptive
name.
For RFC 1918 IPv4 ranges, the command also lists network interfaces in the security group's VPC whose primary or secondary private address is within the range. Each match includes its concrete private IP address. Public IPv4 and IPv6 ranges are not resolved, and resources in other accounts, Regions, peered VPCs, transit networks, or on-premises networks are outside the lookup scope.
The command uses the active AWS CLI credentials and region. Limit output to one
direction with --inbound or --outbound; the flags are mutually exclusive.
Filter the displayed tree with --filter TEXT. Matching is case-insensitive;
matching nodes retain their descendants, and ancestor paths are retained for
context. The Assigned to metadata for security groups on a matching path is
also retained. For example, --filter acc finds labels containing ACC.
Control recursive security-group expansion with --depth DEPTH. The default
depth is 1, which shows resources and rules inside the starting security group
without expanding the contents of referenced groups. The maximum is 3 because
each expanded group and private network can require additional AWS API calls,
and the number of referenced groups can grow rapidly at each level.
Interactive terminals show a loading indicator while AWS resources are being
retrieved. The indicator is written to standard error and is disabled when
output is redirected or piped.
Supply multiple security group IDs to combine them as sibling roots in one tree:
awsi security-group-tree sg-0123456789abcdef0 sg-11111111111111111
Run the tests:
poetry run pytest
Build distribution artifacts:
poetry build
Continuous integration and releases
Pull requests and pushes to main run the test suite on the oldest and newest
supported Python versions. After the tests pass, CI builds the wheel and source
distribution and stores them as workflow artifacts.
Releases use the Publish to PyPI workflow:
- In the repository's Actions tab, select Publish to PyPI and choose
Run workflow from the
mainbranch. - Choose
patch,minor, ormajorfor the semantic version increment. - Approve the
pypienvironment deployment when prompted.
Before the first release:
- Add the appropriate project authors and license metadata to
pyproject.tomland confirm that theaws-intelname is available on PyPI. - Create a GitHub Environment named
pypiand add the required reviewers whose approval is needed to publish. - Configure a PyPI trusted publisher for this repository, the
publish.ymlworkflow, and thepypienvironment. No PyPI API token is required. - Ensure repository rules allow GitHub Actions to push the release version
commit to
main.
After approval, the workflow reruns the tests, increments the version in
pyproject.toml, builds the distributions, pushes the version commit to
main, and publishes through PyPI trusted publishing. Only one release
workflow can run at a time.
Metadata
Release files for aws-intel 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aws_intel-0.2.0.tar.gz | 11.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aws_intel-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.2 kB
Release files / aws_intel-0.2.0.tar.gz
| Download URL | aws_intel-0.2.0.tar.gz |
|---|---|
| Size | 11.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4fa2124629be4ec4ef4bce1bc8e6aac613033b0360796caf6846db40734f189e
|
|
BLAKE2b-256 checksum How to use checksums |
d7319e7cefb2a8cf85dfc3f7814c14bcb629cdcba8e16fb0aea016c7e64a016b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 31, 2026.
Transparency logRelease files / aws_intel-0.2.0-py3-none-any.whl
| Download URL | aws_intel-0.2.0-py3-none-any.whl |
|---|---|
| Size | 13.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dab52ac50b734d7e4f363035e7e3694ccc47708ecff3618a6773bedbe8fcdabe
|
|
BLAKE2b-256 checksum How to use checksums |
a477a87399d13296e47f6180fcb06dad39b93727d8a33a7b50033b0a13c0b1e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 31, 2026.
Transparency log