Skip to content

Instantly share code, notes, and snippets.

@MooreDerek
Created January 19, 2021 02:55
Show Gist options
  • Save MooreDerek/6d1e56d0fcfb24621fe2f556ec8389b4 to your computer and use it in GitHub Desktop.
Save MooreDerek/6d1e56d0fcfb24621fe2f556ec8389b4 to your computer and use it in GitHub Desktop.
List all EC2 instances with 4 CPUs and more than 30000MB of memory
# List all EC2 instances with 4 CPUs and more than 30000MB of memory
aws ec2 describe-instance-types --filters "Name=vcpu-info.default-vcpus,Values=4" \
--query 'InstanceTypes[?MemoryInfo.SizeInMiB > `30000`].[InstanceType, MemoryInfo.SizeInMiB]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment