Giter VIP home page Giter VIP logo

ec2_inventory's Introduction

ec2_inventory.py

A simple script that uses uses the Amazon Web Services Boto3 python module to generate a CSV file of all EC2 Instances.

Prerequisites

This script assumes that you have Python3 and Boto3 installed as well as the other modules listed at the top of the script.

It is also assumed that you have the AWS Command Line Interface installed and have run the configure command to configure the AWS CLI for each of the AWS accounts to be inventoried.

Instructions

Use git clone to download this repository to the system that will run the script.

Next, edit the AWS-account-list.csv to include only the AWS accounts associated with your organization. Use a "Y" in the "In-Audit-Scope" column to indicate whether to include that account in the EC2 Inventory. The fourth column, "Comments-Purpose" is completely optional.

Description

This script iterates through all AWS accounts listed in the AWS-account-list.csv and then iterates through all regions making the DescribeInstances API call each time.

The resulting output will look something like ec2_inventory-2017-11-05.csv.

ec2_inventory's People

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.