Identify the source AMI used to create a new Amazon EC2 AMI
You can identify the source AMI used to create a new AMI by checking the Source
AMI ID (console) or sourceImageId
(AWS CLI) field on the new
AMI. This field contains the ID of the original AMI that was copied to create the
new AMI.
You can also find the Region where the source AMI was located by checking the
Source AMI Region (console) or
sourceImageRegion
(AWS CLI) field.
Considerations
-
The ID and Region of the source AMI only appear if the AMI was created by using the following API commands:
-
CreateImage – Creates an AMI from an instance.
-
CopyImage – Copies an AMI within the same Region or across Regions in the same partition.
-
CreateRestoreImageTask – Copies an AMI to another partition.
If the AMI was created with any other API command, the ID and Region of the source AMI don't appear.
-
-
For some older AMIs, the ID and Region of the source AMI might not be available.
-
If the source AMI has been deleted, the ID and Region fields of the source AMI still appear on the new AMI.
-
For AMIs created by using CreateImage (creates an AMI from an instance), the source AMI ID is the ID of the AMI used to launch the instance.