Created
April 13, 2022 10:37
-
-
Save rex/773587f7910d0a24dea304c207401d0a to your computer and use it in GitHub Desktop.
AWS commands
This file contains hidden or 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
# List all network interfaces with publicly accessible IPs | |
aws ec2 describe-network-interfaces --query "NetworkInterfaces[].{IP: Association.PublicIp,Description: Description, SGs: Groups}" | jq '.[] | select( .IP != null )' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment