Skip to content

Instantly share code, notes, and snippets.

@woodrow
Created March 31, 2018 00:35
Show Gist options
  • Save woodrow/e447e1c57c526084a89ffa6a0c00c4c5 to your computer and use it in GitHub Desktop.
Save woodrow/e447e1c57c526084a89ffa6a0c00c4c5 to your computer and use it in GitHub Desktop.
# check for open ports in security groups
aws ec2 describe-security-groups | jq '.SecurityGroups | map(select(.IpPermissions[] | select(.FromPort >= 443 and .ToPort <= 443)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment