Created
January 19, 2021 02:55
-
-
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
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 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