Skip to content

Instantly share code, notes, and snippets.

@lbbedendo
Last active November 9, 2023 20:57
Show Gist options
  • Save lbbedendo/cb42a77d7e9563a7ca6a0ba10b3fd4f7 to your computer and use it in GitHub Desktop.
Save lbbedendo/cb42a77d7e9563a7ca6a0ba10b3fd4f7 to your computer and use it in GitHub Desktop.
awcli describe network interfaces
--list private ip addresses from the specified <subnet-id>
aws ec2 describe-network-interfaces --filters Name=subnet-id,Values=<subnet-id> | jq -r '.NetworkInterfaces[].PrivateIpAddress' | sort
--list dependencies of a security group
aws ec2 describe-network-interfaces --filters Name=group-id,Values=<security-group-id>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment