Skip to content

Instantly share code, notes, and snippets.

@deekayen
Last active November 23, 2015 03:03
Show Gist options
  • Save deekayen/6b208d3f456c08913431 to your computer and use it in GitHub Desktop.
Save deekayen/6b208d3f456c08913431 to your computer and use it in GitHub Desktop.
Amazon CLI query to get information from a specific region for copy/pasting into the AWS Vulnerability / Penetration Testing Request Form
aws ec2 describe-instances --region us-west-2 --profile default --filters "Name=instance-type,Values=t2.micro,t2.small,*.medium,*large" "Name=instance-state-name,Values=running" --query Reservations[*].Instances[*].[InstanceId,PrivateIpAddress] --output text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment