ec2-filter

command module
v0.0.0-...-bb5666c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2025 License: MIT Imports: 13 Imported by: 0

README

EC2 Filter

simple utility for listing EC2 instances with tag filter

Usage
$ ./ec2-filter -h

NAME:
   ec2-filter - filter ec2 instances with tag

USAGE:
   ec2-filter [global options] command [command options] [arguments...]

COMMANDS:
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --region value, -r value  (default: "us-east-1")
   --key value, -k value
   --value value, -v value
   --help, -h                show help (default: false)

To list all instanaces

$ ./ec2-filter

Name   State    InstaceType  PrivateIP      InstanceId
demo1  Running  t3.micro     192.168.1.1    i-0e13dc5c7f811c72a
demo2  Running  t3.micro     192.168.1.2    i-03373efd80c8147c6

To list all instanaces with tag "Name", and its value is "demo1"

$ ./ec2-filter -k Name -v demo1

Name   State    InstaceType  PrivateIP      InstanceId
demo1  Running  t3.micro     192.168.1.1    i-0e13dc5c7f811c72a

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL