Available Images Grep Amazon EC2 Free Tier

Is there a way for grep images that have a "Free Level" with ec2-description images

+4
source share
2 answers

All supported AMI EBS that are less than 10 GB are eligible for a free tier.

I think you can grep filter out the results of ec2-describe-images , which are 10 GB or less.

+3
source

In my case, I only care about 64-bit systems.

 aws ec2 describe-images --filters "Name=root-device-type,Values=ebs" "Name=architecture,Values=x86_64" --query 'Images[?BlockDeviceMappings[0].Ebs.VolumeSize<=`10`]' 

Or a little faster:

 aws ec2 describe-images --filters "Name=root-device-type,Values=ebs" "Name=architecture,Values=x86_64" "Name=block-device-mapping.volume-size,Values=1,2,3,4,5,6,7,8,9,10" 
+3
source

All Articles