Giter Club home page Giter Club logo

aws-ec2-parse-script's Introduction

AWS-EC2-Parse-Script

This script runs locally and iterates through a specified region in an AWS account. The output includes instance name, size, OS, etc.

The script is designed to run locally and requires node.js to run. This script already assumes you have the AWS CLI tool installed. Additionally, you should already have the selected accounts to be inventoried scoped.

  1. Install node with one of the following methods
  2. Clone the repo
  3. Navigate to the repo directory
  4. Make sure to have your AWS profiles where you are running the scan selected. You can either import a configured list of AWS profiles or manually configure them. To manually configure them, complete the following:
    • aws configure --profile . Skip adding the access and secret key and set the default region for the profile. For example "aws configure --profile test" enter, enter (set aws region: us-west-1) enter.
      • IMPORTANT, This will not add role-ARN. These must be added manually. To add the role manually, navigate to the aws directory and type nano config. Then add "role_arn=.....(follow format below)
    • If you manually upload profiles, use this format: [profile <Whatever Name you decide to call it] role_arn = arn:aws:iam:::role/ source_profile = default region= Change your AWS-Profile to the targed account and region export AWS_profile= Test to make sure you are in the correct account and region aws s3 ls or aws sts get-caller-identity Run the script node parse-ec2.js This will create an exported csv called "-ec2-inventory.csv" The script is placed in the same directory Key Notes** Everytime the script is run it "appends" to the original file. If there is no original file for that account, the script creates a new file. This is a regional API. Make sure the accounts that you are pulling data from have their primary business in that region. This is identified in the region section of your profile. If you query us-west-2 in a region where the account is primarily working out of us-east-1, you will not get the results you are looking for.

aws-ec2-parse-script's People

Contributors

brwnronswanson avatar tquentin avatar

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.