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.8.0.tar.gz (18.1 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.8.0-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cloudwanderer-0.8.0.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.6

File hashes

Hashes for cloudwanderer-0.8.0.tar.gz
Algorithm Hash digest
SHA256 4fa532cd8fc9658aeba080a2afdef60d267128dc6428277f6d0ea2fed6b6c424
MD5 76a461bd12ae65d2696e159f5d0940f1
BLAKE2b-256 575d62d841624c44194d7ffe6bf714bcf6a7ca9779b80206304ef0088ca8aacc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cloudwanderer-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 23.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.6

File hashes

Hashes for cloudwanderer-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 02a03fa7740bd404a5a168a583b1ea5d00a9078ae9a34255567b6ead464f2c48
MD5 565b73b72ec33c09df0f715b89c09234
BLAKE2b-256 c1fcff431f252ac5e3225834a79a19a9a0bf3e3ae38c27ca7f9986c1a4a37268

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