How to get the list of all AWS AMIs using boto3?


I want to list all the AWS AMI’s (Amazon Machine Image) that I can see using the console and Boto 3.

I have tried using describe_instances() to get ImageIDs but not all the images are getting listed.


This lists all AMIs that were created by your account. If you leave out the ‘self’ bit, it will list all publicly-accessible AMIs (and the list is BIG!).

Leave a Reply