Skip to content

Tool to get data from AWS and export it in different formats

Notifications You must be signed in to change notification settings

antonichuk/aws_inventory

 
 

Repository files navigation

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)

About

Tool to get data from AWS and export it in different formats

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 94.9%
  • CSS 4.3%
  • JavaScript 0.8%