[cs615asa] AWS EC2 AMI by region?

Jan Schaumann jschauma at stevens.edu
Wed Apr 8 23:46:57 EDT 2020


Elliot Wasem <ewasem at stevens.edu> wrote:
 
> I'm trying to create a mapping from
> region+availability zone to ami, but am having
> trouble actually finding where I can access a list
> of said AMI's short of changing my region, or
> automating iterating over every region, querying for
> every AMI id, and filtering from there (which I'm
> currently trying but is taking forever naturally).
> Does anyone have any advice? Or is there a stupid
> simple solution I'm unaware of?

I think the simplest approach is look up the OS
provider's documentation for the list of AMIs by
region and create an internal mapping.

The other way around -- i.e., if you do have an AMI
and need to find out what region it belongs to --
would be similar to how we discussed determining a
volume's region:
https://lists.stevens.edu/pipermail/cs615asa/2020-February/002476.html

-Jan


More information about the cs615asa mailing list