Skip to content

Instantly share code, notes, and snippets.

@aflansburg
Created April 24, 2023 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aflansburg/06563b88429cc2581b2e051015a0c80c to your computer and use it in GitHub Desktop.
Save aflansburg/06563b88429cc2581b2e051015a0c80c to your computer and use it in GitHub Desktop.
EC2-Helpful-AWS-Commands
# 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