Skip to main content

Zambi Connection Manager

Project description

# zambi A single place to manage AWS boto connection objects for multiple accounts and services.

# Summary Zambi is used to manage multiple connection types leveraging the boto library. So that you can quickly create a new connection object for a new account or a service.

# Getting started To get started install zambi ` pip install zambi `

Create a conf directory and a credential directory and set these system variables. ` export AWS_CONF_DIR=/path/to/conf export AWS_CRED_DIR=/path/to/credntials `

Create account mapping file, $AWS_CONF_DIR/account_aliases_map.txt ` opsqa:opsqa:111111111111 `

Create credential files, $AWS_CRED_DIR/opsqa.ini ` [Credentials] aws_account_id=111111111111 aws_access_key_id=AXXXXXXXXXXX aws_SECRET_ACCESS_KEY=yyyyyyyxxxxxxxzzzzzz `

# Usage Initialize the Zambi within you. ` from zambi import ZambiConn cmgr = ZambiConn() `

To get all accounts from mapping file. ` accounts = cmgr.get_accounts() `

To get accounts that end in qa. ` accounts = cmgr.get_accounts('.*qa') `

To get just the opsqa account. ` account = cmgr.get_accounts('opsqa') `

Creaet an EC2 Connection to opsqa. ` conn = cmgr.get_connection(account) `

Example of other services like route53 ` conn = cmgr.get_connection(account, service='route53') `

Changelog

Next Release (TBD)

  • Zambi: Manages boto connection objects for multiple AWS accounts and services.

1.0

  • feature: Initial revision

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

Zambi-1.0.0.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file Zambi-1.0.0.tar.gz.

File metadata

  • Download URL: Zambi-1.0.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Zambi-1.0.0.tar.gz
Algorithm Hash digest
SHA256 99ca2fdeab313a2a95798b4d831941a52346c24f7ee376d8fb859ef2d8104610
MD5 9e4efc2568bbba6949e31e66e73f40b5
BLAKE2b-256 0b91556bf60e4ffcadbf7b50d33f2433372d9dfe2f69f3798462efa78d3f5d2a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page