Skip to main content

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

Project description

CloudWanderer

cloudwanderer

PyPI

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

Documentation

See the full documentation at CloudWanderer.io.

Quick Start

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
>>> wanderer = CloudWanderer(storage_connector=DynamoDbConnector(
...     endpoint_url='http://localhost:8000'
... ))
>>> logging.basicConfig(level='INFO')
>>> wanderer.storage_connector.init()

Query all the resources from your current account region and save them to your local dynamodb.

>>> wanderer.write_all_resources()

Get a list of lambda functions back.

>>> lambda_function_urns = wanderer.read_resource_of_type(service='lambda', resource_type='function')
>>> first_function = next(lambda_function_urns)
>>> first_function.urn
AwsUrn(account_id='111111111111', region='eu-west-2', service='lambda', resource_type='function', resource_id='awesomeproject-201904202316-HostedUICustomResource-1PLE213GNV66A')

Load the full details of the resource.

>>> function = wanderer.read_resource(urn=first_function.urn)
>>> function.function_name
'awesomeproject-201904202316-HostedUICustomResource-1PLE213GNV66A'
>>> function.role
'arn:aws:iam::111111111111:role/cognitod72684bb_userpoolclient_lambda_role-dev'
>>> function.runtime
'python3.8'

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.7.1.tar.gz (17.7 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.7.1-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cloudwanderer-0.7.1.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.0

File hashes

Hashes for cloudwanderer-0.7.1.tar.gz
Algorithm Hash digest
SHA256 89934b0d8f597060acf3e0f2530deaece98565db9408c671cd2994a0646ecd32
MD5 9523accb5e35276ae4fa78d88230ca81
BLAKE2b-256 afd71fd1aaffaae0522d7652be6bdd34868b3aac0ebbd1127f86837dcc838900

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cloudwanderer-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 23.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.0

File hashes

Hashes for cloudwanderer-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4bc47fbb0e466640fbc7e4617388e55de4c44fd60a4dc5aab15c230f262949cc
MD5 3a4843580e53eb5faf0979004677801c
BLAKE2b-256 a1d52652e457e8f1aab7fb3f69be0a3122cc46277bcc96e27bbb55a4d913d3e6

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