Skip to content

cloud-crafts/sg-ripper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sg-ripper

sg-ripper is a tool that can be used to detect unused Security Groups an Elastic Network Interfaces in an AWS account.

sg-ripper gives detailed information about which ENI (Elastic Network Interfaces) is attached to which Security Group and what kind of AWS resource is using that ENI. It also can detect which ENIs are potentially stuck after the removal of the resource.

Usage

Security Group and ENI cleaner.

Usage:
  sg-ripper [command]

Available Commands:
  help        Help about any command
  list        List Security Groups with Details
  list-eni    List Elastic Network Interfaces with Details
  remove      Remove unused Security Groups.
  remove-eni  Remove unused Elastic Network Interfaces.

Flags:
  -h, --help             help for sg-ripper
      --profile string   [Optional] Profile.
      --region string    [Optional] AWS Region.
  -v, --version          version for sg-ripper

Use "sg-ripper [command] --help" for more information about a command.

Examples:

sg-ripper list --sg sg-12354
sg-ripper list-eni --eni eni-1234

Building

  • Windows:
go build -o dist/sg-ripper.exe
  • Linux/MacOS:
go build -o dist/sg-ripper