https://github.com/grem11n/security-group-search
Script written in Golang which searches for pattern (IP or another SG) in AWS security group permissions
https://github.com/grem11n/security-group-search
Last synced: 2 months ago
JSON representation
Script written in Golang which searches for pattern (IP or another SG) in AWS security group permissions
- Host: GitHub
- URL: https://github.com/grem11n/security-group-search
- Owner: grem11n
- License: apache-2.0
- Created: 2016-07-08T17:27:34.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-01-10T12:31:19.000Z (over 6 years ago)
- Last Synced: 2025-02-07T14:40:32.870Z (4 months ago)
- Language: Go
- Size: 9.77 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple script to search in AWS security groups
## Description
Sometimes you may want to change security groups rules and it's great to know what exactly would be affected with such change.This script is designed to simply output a list of security groups, which contain provided pattern.
It could be an IP or another security group ID. Script only do string search in IpPermissions.## Installation
I use [Go Modules](https://github.com/golang/go/wiki/Modules) to manage dependencies. Hence, to build this, you need to have Go >= 1.11## Usage
* ```-config``` Allow changing path to the file with AWS credentials
* ```-region``` Defines region (default "us-east-1")
* ```-section``` Which section of AWS credentials to use (default "default")
* ```-ingress``` Set what are you looking for in ingress rules. Could be regexp
* ```-egress``` Search in egress rules
* ```-output``` Set output format. `table`, `json`, and `text` formats are supported for now (default "`table`")