get the list of Quickstart AMIs only

1

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.

gefragt vor 2 Jahren957 Aufrufe
2 Antworten
0

This is a bit late for your question I'm sure @Prasanta, but hopefully this'll help the next person that comes along. It appears that the URL below will return a listing the Quickstart AMIs in JSON format. You should then be able to parse this list accordingly.

NOTE: the url below is purposely 'broken' because frustratingly re:Post won't let the text "aws dot dev" appear in any posts. So simply remove the space on either side of the "aws . dev" to get the proper URL.

https://prod.us-west-1.qs.console.ec2.aws . dev/get_quickstart_list_en.json

BTW, I needed this exact thing. I went into Inspect mode on the AWS console and simply found the GET that was fetching the data that was used to populate the UI. Viola!

Cheers,

Gary

Gary
beantwortet vor 4 Monaten
-1

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)

AWS
SUPPORT-TECHNIKER
beantwortet vor 2 Jahren
  • 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",

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen