Giter Club home page Giter Club logo

aws_inventory's Introduction

aws_inventory

This tool was written to collect data from AWS and store it in single place. With this files you can track changes in your infrastructure on AWS.

To run this tool you should execute next command "python aws_inventory.py".

Configuration

All configuration stored in aws_inventory.ini. Configuration file should contain at least one AWS account.

  • General section (name: General)

  • site_root - directory to store result data

  • module_dir - directory with data and reander modules

  • log_file - path to log file

  • AWS account section (Name should start with AWS) might be one or more sections

  • aws_key - key ID to AWS account

  • aws_secret - secret key ID to AWS account

  • aws_account_name - name of the AWS account

Requirements

  • Python 2.7 (wasn't tested on earlier versions)

  • boto library 2.10.0+

  • openpyxl 2+

Modules

  • EC - elasticache module (data_EC.py)

Collects data about elasticache. Such as: Name, Endpoint, Status, Node type, Maintenance window, Engine.

  • EC2 - EC2 module (data_EC2.py)

Collects data about EC2 instances. Such as: Name, ELB name, IP address, State, Route53 name, Private IP, Public DNS, Instance type.

  • EIP - elastic IP module (data_EIP.py)

Collects data about elastic IP's. Such as: IP address, Instance ID, Instance name, Route53 name.

  • ELB - elastic load balancer module (data_ELB.py)

Collects data about elastic load balancers. Such as: Name, DNS name, Instances count, Route53 name.

  • RDS - Relational Database Service module (data_RDS.py)

Collects data about RDS. Such as: Name, Endpoint, Allocated storage, Instance class, Status.

  • Route53 - Route53 module (data_Route53.py)

Collects data about Route53. Used for mapping EIP, ELB, S3, etc. to DNS records.

  • S3 - S3 module (data_S3.py)

Collects data about S3. Such as: Name, Website endpoint, Route53 name.

  • SG - Security group module (data_SG.py)

Collects data about security groups. Such as: Protocol, Port, Source.

  • Users - AWS IAM users module (data_Users.py)

Collects data about AWS IAM users. Such as: User name, Groups

  • Snapshots - AWS EBS snapshots module (data_snapshots.py)

Collects data about EBS snapshots. Such as: ID, Status, Size, Volume ID, Volume exists, Owner ID, Image ID.

  • Volumes - AWS EBS volumes module (data_volumes.py)

Collects data about EBS volumes. Such as: ID, Attachment State, IOPS, Size, Create Time.

  • CSV - module to output to CSV file (render_csv.py)

  • pureHTML - module to output to single HTML page (render_purehtml.py)

  • XLSX - module to output to XLSX file (render_xlsx.py)

aws_inventory's People

Contributors

hao-ua avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

aws_inventory's Issues

KeyError in render_*.py for detached EBS volume

EBS volume is not attached to an EC2 instance, render_* functions

$ python aws_inventory.py 
Traceback (most recent call last):
  File "aws_inventory.py", line 74, in <module>
    main()
  File "aws_inventory.py", line 71, in main
    render.render()
  File "/Users/xxx/Documents/Development/aws_inventory/render_csv.py", line 57, in render
    self.generate_page(page)
  File "/Users/xxx/Documents/Development/aws_inventory/render_csv.py", line 51, in generate_page
    self.print_category_items(category, page)
  File "/Users/xxx/Documents/Development/aws_inventory/render_csv.py", line 46, in print_category_items
    self.print_row(self.HeaderKeys[page], item)
  File "/Users/xxx/Documents/Development/aws_inventory/render_csv.py", line 30, in print_row
    items = [str(data[key]) for key in rows]
KeyError: 'instance_name'

Similar error is thrown for render_purehtml.py

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.