A Python package which allows you to enumerate and store your AWS Resources in AWS Neptune (or Gremlin for local execution) in order to be able to ask questions like:
How old are my IAM users access keys?
What lambda functions do I have that are connected to VPCs that have access to the internet via a NAT gateway?
How many untagged VPCs do I have across all regions?
What does it do?
What the above YouTube video to see an example of what you can do with CloudWanderer.
Installation
pip install cloudwanderer
Local Quickstart
Spin up a local Gremlin Graph Database server and a Jupyter Notebook.
$ git clone https://github.com/CloudWanderer-io/docker-graph-notebook.git
$ cd docker-graph-notebook
$ docker-compose up
Look in the output for something that looks like:
jupyter-notebook_1 | Or copy and paste one of these URLs:
jupyter-notebook_1 | http://localhost:8888/?token=88dc054886e3ea73480de91066937a33c9bc8bd484eb395c
Open the URL in question in a tab in your browser.
Open up Python in your preferred IDE and import and initialise CloudWanderer
>>> import logging
>>> from cloudwanderer import CloudWanderer
>>> from cloudwanderer.storage_connectors import GremlinStorageConnector
>>> storage_connector = GremlinStorageConnector(
... endpoint_url="ws://localhost:8182"
... )
>>> wanderer = CloudWanderer(storage_connectors=[storage_connector])
>>> logging.basicConfig(level='INFO')
Get all the resources from your AWS account and save them to your local Gremlin graph database.
>>> wanderer.write_resources()
Go to the Jupyter Notebook link you opened earlier and, create a new notebook by hitting ‘new’ on the top right, and type the following into a new cell to get a list of VPCs.
%%gremlin
g.V().hasLabel('aws_ec2_vpc').out().path().by(valueMap(true))
Voila!
You can learn more Gremlin (the language that’s supported by the local setup here) by reading Kevin Lawrence’s amazing book on Gremlin OR you can get stuck in to the much more straightforward OpenCypher language by following the Neptune Quickstart guide.
Metadata
Release files for cloudwanderer 0.29.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cloudwanderer-0.29.2.tar.gz | 48.6 kB | Without provenance | Details for cloudwanderer-0.29.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cloudwanderer-0.29.2-py3-none-any.whl | Python 3 | none | any | Details for cloudwanderer-0.29.2-py3-none-any.whl |
Total release size: 117.1 kB
Release files / cloudwanderer-0.29.2.tar.gz
| Download URL | cloudwanderer-0.29.2.tar.gz |
|---|---|
| Size | 48.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec74961d6d2c0fc16fd7986bc152fb016f11c0cf5bcccfbf2ee840cccad56e96
|
|
BLAKE2b-256 checksum How to use checksums |
ff48f3c6abcf7ce1d6807a963c511afa24b094bb9dec42e312aa5a3c737600b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / cloudwanderer-0.29.2-py3-none-any.whl
| Download URL | cloudwanderer-0.29.2-py3-none-any.whl |
|---|---|
| Size | 68.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2e8e6882b8892dc30f9dfbb6c485db46230b401cd9de8d1533cdef216d17f9a9
|
|
BLAKE2b-256 checksum How to use checksums |
b3c45429c9aeb31071bcf8b020739248eb06ca9831484488c13cbf8924eabbff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Security for cloudwanderer 0.29.2
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.