Last active
July 21, 2016 08:07
-
-
Save upbeta01/47ea1891a290a341ded89e93829db2c2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws ec2 describe-security-groups --filters "Name=ip-permission.from-port,Values=22" "Name=ip-permission.to-port,Values=22" --query 'SecurityGroups[*].{Name:GroupName,ID:GroupId,IP:IpPermissions}' --output table | |
----- THIS SHOWS ALL SECGROUPS (but not limited to port 22) ----- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment