Coder Social home page Coder Social logo

listec2's Introduction

listec2

List and filter running AWS EC2 instances. Supports multiple profiles and saving them for easy querying of multiple accounts.

Installation

To install from source, run in the root of the repo:

pip install -e .

Usage Help

Usage:

usage: listec2 [-h] [-p PROFILE] [-x] [--update-config] [filter_string]

List running AWS EC2 servers

positional arguments:
  filter_string         Filter for specific string in server names

optional arguments:
  -h, --help            show this help message and exit
  -p PROFILE, --profile PROFILE
                        awscli configured profile
  -x, --no-early-exit   Stop querying different profiles once servers found
  --update-config       Force prompt for updating config (forces explicitly
                        set profile to be ignored)

Use Cases

The listec2 allows storing which profiles to use and will loop through the profiles searching for matching servers until some are found in an account. By default the script will exit and show output as soon as servers are matched to avoid extended wait times.

To store the list of profiles, run the listec2 command with the --update-config option and the command will prompt for input of the new list of profiles.

To use with a single profile or avoid getting a prompt for profiles use the --profile|-p option to specify the profile to use.

listec2's People

Contributors

brianleblanc-at-bluespurs avatar omnibrian avatar

Watchers

 avatar  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.