By using AWS re:Post, you agree to the Terms of Use

get the list of Quickstart AMIs only

0

I would like to get the list of "Quickstart AMIs" only. I tried various filters using "aws ec2 describe-images" but I am still not able to get the list of "Quickstart AMIs". One of the options I tried is as given below.

aws ec2 describe-images --owners amazon --filters "Name=virtualization-type,Values=hvm" "Name=root-device-type,Values=ebs" "Name=ena-support,Values=true"

I see in the UI, that the "Quickstart AMIs" is associated with "Catalog Quickstart AMIs". Is there a way I could filter using "Catalog"?

I tried filtering by tag but it returned a 0 result.

aws ec2 describe-images --owners amazon --filters "Name=virtualization-type,Values=hvm" "Name=root-device-type,Values=ebs" "Name=ena-support,Values=Yes" "Name=tag:Catalog,Values=Quickstart*" | grep "Public" | wc -l

I would appreciate any help in this regard.

asked 2 months ago46 views
1 Answer
0

Hello! You can try to filter via the Description attribute. For example, this command will retrieve any AMI you have permission to that has "QuickStart" in the description:

aws ec2 describe-images --filters Name=description,Values="*QuickStart*"

You can also try using the AMI name field:

aws ec2 describe-images --filters Name=name,Values="*QuickStart*"

I got some results but they might not be the AMIs you want. I am not sure if these AMIs need to be shared with your account (and that's why I don't see many hits returned)

SUPPORT ENGINEER
answered 2 months ago
  • I checked the "Quickstart AMIs" images and they do not seem to have "Quickstart" word in either name or description field. Following are some of the Quickstart AMI images

    { "Images": [ { "Architecture": "arm64", "CreationDate": "2022-06-14T19:28:44.000Z", "ImageId": "ami-00bf5f1c358708486", "ImageLocation": "amazon/amzn2-ami-kernel-5.10-hvm-2.0.20220606.1-arm64-gp2", "ImageType": "machine", "Public": true, "OwnerId": "137112412989", "PlatformDetails": "Linux/UNIX", "UsageOperation": "RunInstances", "State": "available", "BlockDeviceMappings": [ { "DeviceName": "/dev/xvda", "Ebs": { "DeleteOnTermination": true, "SnapshotId": "snap-092879216a725a481", "VolumeSize": 8, "VolumeType": "gp2", "Encrypted": false } } ], "Description": "Amazon Linux 2 LTS Arm64 Kernel 5.10 AMI 2.0.20220606.1 arm64 HVM gp2", "EnaSupport": true, "Hypervisor": "xen", "ImageOwnerAlias": "amazon", "Name": "amzn2-ami-kernel-5.10-hvm-2.0.20220606.1-arm64-gp2", "RootDeviceName": "/dev/xvda", "RootDeviceType": "ebs", "SriovNetSupport": "simple",

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions