1 Answer
- Newest
- Most votes
- Most comments
0
There are several limitations for export image that can result in an error. These are documented here: https://docs.aws.amazon.com/vm-import/latest/userguide/vmexport_image.html#limits-image-export
The one that applies in this case is "You can't export an image from Amazon EC2 if you've shared it from another AWS account". If you're using the standard Amazon Linux 2 AMI, that exists in another account, managed by AWS. You should be able to copy the AMI into your own account, then export it using that AMI ID, as long as none of the other limitations apply.
answered 2 years ago
Relevant content
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 9 months ago
That was it indeed! The documentation didn't make it obvious that "shared from another AWS account" also applied to public Amazon-published AMIs, and the "InvalidParameter" "image ID does not exist" is a misleading error code IMHO. But thank you for clarifying: I'm able to export the copied AMI after waiting a while for the copied AMI to become "Available" from "Pending," which BTW took a while even after the contained snapshot was copied over successfully.