Script to return AMI IDs for a given AWS region associated to a marketplace product page. Requires AWS CLI and a valid set of credentials for the aws ec2 describe-images
call.
-
Browse the AWS marketplace to locate the product of interest.
-
Note the URL of the product page.
-
Execute script for the desired region:
$ ./listmarketplaceami.sh ap-southeast-2 "https://aws.amazon.com/marketplace/pp/B00UU272MM" # ami-07b6ae8cccab5644b:2020-08-24T18:38:46.000Z:NGINX Plus - Amazon Linux AMI (HVM, v1.4), provided by Nginx, Inc.