Created
April 24, 2023 19:58
-
-
Save aflansburg/06563b88429cc2581b2e051015a0c80c to your computer and use it in GitHub Desktop.
EC2-Helpful-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 provisioned IP addresses for a subnet | |
aws ec2 describe-network-interfaces \ | |
--filters Name=subnet-id,Values=<subnet id> \ | |
| jq -r '.NetworkInterfaces[].PrivateIpAddress' | sort |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment