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.
The ID and Region of the source AMI only appear if the AMI was created by using the following API commands:
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.
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
In the navigation pane, choose AMIs.
Select the AMI to view its details.
The source AMI information appears in the following fields: Source AMI ID and Source AMI Region
Use the describe-images command and specify the ID and Region of the AMI.
aws ec2 describe-images \
--region us-east-1
\
--image-ids ami-0abcdef1234567890
\
--query "Images[].{ID:SourceImageId,Region:SourceImageRegion}"
The following is example output.
[
{
"ID": "ami-0abcdef1234567890",
"Region": "us-west-2"
}
}
Use the Get-EC2Image cmdlet.
Get-EC2Image -ImageId ami-0abcdef1234567890
| Select SourceImageId, SourceImageRegion
The following is example output.
SourceImageId SourceImageRegion
------------- -----------------
ami-0abcdef1234567890 us-west-2
Create a store image task
Check when an AMI was last used
Did this page help you? - Yes
Thanks for letting us know we're doing a good job!
If you've got a moment, please tell us what we did right so we can do more of it.
Did this page help you? - No
Thanks for letting us know this page needs work. We're sorry we let you down.
If you've got a moment, please tell us how we can make the documentation better.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4