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.
I use Go Modules to manage dependencies. Hence, to build this, you need to have Go >= 1.11
-configAllow changing path to the file with AWS credentials-regionDefines region (default "us-east-1")-sectionWhich section of AWS credentials to use (default "default")-ingressSet what are you looking for in ingress rules. Could be regexp-egressSearch in egress rules-outputSet output format.table,json, andtextformats are supported for now (default "table")