aws --region ap-southeast-2 ec2 describe-images --owners aws-marketplace --filters Name=product-code,Values=aw0evgkw8e5c1q413zgy5pjcecode
{ "Images": [ { "BlockDeviceMappings": [ { "DeviceName": "/dev/sda1", "Ebs": { "DeleteOnTermination": false, "VolumeType": "standard", "Encrypted": false, "VolumeSize": 8, "SnapshotId": "snap-0635e3e9f403b9dc7" } } ], "ImageLocation": "aws-marketplace/CentOS Linux 7 x86_64 HVM EBS 1704_01-b7ee8a69-ee97-4a49-9e68-afaee216db2e-ami-d52f5bc3.4", "Description": "CentOS Linux 7 x86_64 HVM EBS 1704_01", "EnaSupport": false, "State": "available", "Hypervisor": "xen", "VirtualizationType": "hvm", "Name": "CentOS Linux 7 x86_64 HVM EBS 1704_01-b7ee8a69-ee97-4a49-9e68-afaee216db2e-ami-d52f5bc3.4", "Architecture": "x86_64", "CreationDate": "2017-05-10T18:55:58.000Z", "ImageOwnerAlias": "aws-marketplace", "ProductCodes": [ { "ProductCodeType": "marketplace", "ProductCodeId": "aw0evgkw8e5c1q413zgy5pjce" } ], "ImageId": "ami-34171d57", "RootDeviceType": "ebs", "ImageType": "machine", "Public": true, "OwnerId": "679593333241", "RootDeviceName": "/dev/sda1" }, { "BlockDeviceMappings": [ { "DeviceName": "/dev/sda1", "Ebs": { "DeleteOnTermination": false, "VolumeType": "standard", "Encrypted": false, "VolumeSize": 8, "SnapshotId": "snap-0a28f00353dbe64e2" } } ], "ImageLocation": "aws-marketplace/CentOS Linux 7 x86_64 HVM EBS 1708_01-b7ee8a69-ee97-4a49-9e68-afaee216db2e-ami-0d8f9576.4", "Description": "CentOS Linux 7 x86_64 HVM EBS 1708_01", "EnaSupport": false, "State": "available", "Hypervisor": "xen", "VirtualizationType": "hvm", "Name": "CentOS Linux 7 x86_64 HVM EBS 1708_01-b7ee8a69-ee97-4a49-9e68-afaee216db2e-ami-0d8f9576.4", "Architecture": "x86_64", "CreationDate": "2017-09-13T14:41:42.000Z", "ImageOwnerAlias": "aws-marketplace", "ProductCodes": [ { "ProductCodeType": "marketplace", "ProductCodeId": "aw0evgkw8e5c1q413zgy5pjce" } ], "ImageId": "ami-e9c7208b", "RootDeviceType": "ebs", "ImageType": "machine", "Public": true, "OwnerId": "679593333241", "RootDeviceName": "/dev/sda1" }, { "BlockDeviceMappings": [ { "DeviceName": "/dev/sda1", "Ebs": { "DeleteOnTermination": false, "VolumeType": "standard", "Encrypted": false, "VolumeSize": 8, "SnapshotId": "snap-41be99a9" } } ], "ImageLocation": "aws-marketplace/CentOS Linux 7 x86_64 HVM EBS 1602-b7ee8a69-ee97-4a49-9e68-afaee216db2e-ami-d7e1d2bd.3", "Description": "CentOS Linux 7 x86_64 HVM EBS 1602", "State": "available", "Hypervisor": "xen", "VirtualizationType": "hvm", "Name": "CentOS Linux 7 x86_64 HVM EBS 1602-b7ee8a69-ee97-4a49-9e68-afaee216db2e-ami-d7e1d2bd.3", "Architecture": "x86_64", "CreationDate": "2016-02-26T21:22:29.000Z", "ImageOwnerAlias": "aws-marketplace", "ProductCodes": [ { "ProductCodeType": "marketplace", "ProductCodeId": "aw0evgkw8e5c1q413zgy5pjce" } ], "ImageId": "ami-fedafc9d", "RootDeviceType": "ebs", "ImageType": "machine", "Public": true, "OwnerId": "679593333241", "RootDeviceName": "/dev/sda1" } ] }