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.

질문됨 2년 전957회 조회
2개 답변
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
답변함 4달 전
-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
지원 엔지니어
답변함 2년 전
  • 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",

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠