Skip to main content

A Python package which wanders across your AWS account and records resources in multiple databases

Project description

https://user-images.githubusercontent.com/803607/101322139-7111b800-385e-11eb-9277-c6bf3a580987.png

PyPI GitHub Workflow Status (branch) Documentation Status

A Python package which wanders across your AWS account and records your resources in DynamoDB

Installation

pip install cloudwanderer

Usage

Start a local dynamodb

$  docker run -p 8000:8000 amazon/dynamodb-local

Open up python and import and initialise CloudWanderer

>>> import logging
>>> from cloudwanderer import CloudWanderer
>>> from cloudwanderer.storage_connectors import DynamoDbConnector
>>> storage_connector = DynamoDbConnector(
...     endpoint_url='http://localhost:8000'
... )
>>> wanderer = CloudWanderer(storage_connectors=[storage_connector])
>>> logging.basicConfig(level='INFO')
>>> storage_connector.init()

Get all the resources from your AWS account and save them to your local dynamodb.

>>> wanderer.write_resources()

Get a list of VPCs back.

>>> vpcs = storage_connector.read_resources(service='ec2', resource_type='vpc')
>>> first_vpc = next(vpcs)
>>> first_vpc.urn
URN(cloud_name='aws', account_id='123456789012', region='eu-west-2', service='ec2', resource_type='vpc', resource_id_parts=['vpc-11111111'])

Load the full details of the resource.

>>> first_vpc.load()
>>> first_vpc.cidr_block
'172.31.0.0/16'
>>> first_vpc.instance_tenancy
'default'
>>> first_vpc.is_default
True

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

cloudwanderer-0.19.4.tar.gz (39.4 kB view details)

Uploaded Source

Built Distribution

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

cloudwanderer-0.19.4-py3-none-any.whl (56.1 kB view details)

Uploaded Python 3

File details

Details for the file cloudwanderer-0.19.4.tar.gz.

File metadata

  • Download URL: cloudwanderer-0.19.4.tar.gz
  • Upload date:
  • Size: 39.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for cloudwanderer-0.19.4.tar.gz
Algorithm Hash digest
SHA256 c02e9a1c8489d8f17b629a8185110d25da6728e55342a7fcb1388079d03dbf87
MD5 1ab03e86811d43ef1e94209e09574681
BLAKE2b-256 b2351861912597a112c7315e0c1773e54f731395308a86b3c12974b84ef8819c

See more details on using hashes here.

File details

Details for the file cloudwanderer-0.19.4-py3-none-any.whl.

File metadata

  • Download URL: cloudwanderer-0.19.4-py3-none-any.whl
  • Upload date:
  • Size: 56.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for cloudwanderer-0.19.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c5ec0a6ee93ec8f41395a2130634cd425c29b43295a0b40083799c2b59fe8960
MD5 435292eda771ea7508b702287e9f9a9d
BLAKE2b-256 187562915ee0af1b6291ef7639cd0083e3a9a1a28d037e48e70ece4dc6dae3e8

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