aws ec2 describe-images
Describes the specified images (AMIs, AKIs, and ARIs) available to you or all of the images available to you. AWS CLI reference
9 options Its page in the AWS CLI reference
Options
--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.--executable-usersScopes the images by users with explicit launch permissions.--filtersThe filters.--image-idsThe image IDs.--include-deprecatedSpecifies whether to include deprecated AMIs.--include-disabledSpecifies whether to include disabled AMIs.--max-resultsThe maximum number of items to return for this request.--next-tokenThe token returned from a previous paginated request.--ownersScopes the results to images with the specified owners.