Created
October 13, 2016 13:23
-
-
Save upbeta01/435e260457f3bc55e300a1364a3ebe8c to your computer and use it in GitHub Desktop.
AWSCLI Query
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[*].IpPermissions[*].{IP:IpRanges}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I only wanted to see records specifically related to port 22