Skip to main content

Browse your AWS resources using a hierarchical object model

Project description

Browse your AWS resources using a hierarchical object model


Fire up your python interpreter RPEL. All usage of the module is done through an ‘aws’ instance exported by the main module, so you do:

>>> from awsom import aws

First time, you will want to configure an account, for instance:

>>> aws.add_account("myaws", access_key_id="xxxx", secret_access_key="yyyy")

Your account details are saved automatically to awsom’s config file, so next time you use it, the account will already be there. The account is accessible as a children node (named “myaws”), you can print it out:

>>> print aws.myaws
aws > myaws
  Type: <class 'awsom.config.AccountEntity'>
    .access_key_id = "xxxxxxxxxxxxxxxxxxxx"
    .name = "myaws"
    .secret_access_key = "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
  Children (1):

So far we only have access to some ec2 instance info, you can print your instance list

>>> print aws.myaws.ec2.instances
aws > myaws > ec2 > instances
  Type: <class ''>
    .name = "instances"
  Children (2):

And some info about some instance:

>>> print aws.myaws.ec2.instances.i_xxxxxxxx
aws > myaws > ec2 > instances > i_xxxxxxxx
  Type: <class ''>
    .architecture = x86_64
    .dns_name =
    .id = i-xxxxxxxx
    .instance_type = m1.large
    .name = i_xxxxxxxx
    .private_ip_address =
    .region = RegionInfo:us-east-1
    .tags = {}
  Children (0):

Another thing to try:

>>> for i in aws.myaws.ec2.instances: print aws.myaws.ec2.instances[i]

Project details

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for awsom, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size awsom-0.0.3.tar.gz (6.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page