Unable to retrieve snapshot due to image not available

0

I have migrated snapshot from old aws account to another but unable to convert the snapshot to image Image - Ubuntu 16.04 LTS - Xenial (HVM) Error - This version has been removed and is no longer available to new customers.

Any idea how I can convert snapshot to ec2 if the image is no longer available

已提問 1 年前檢視次數 358 次
1 個回答
0

Hi,

From your notes, can you provide me more detail on the following "convert the snapshot to image"

  1. How are you converting the snapshot to image?

If you have copied the snapshot from a different account, are you able to create a volume from the snapshot [1]? From my tests I was able to create volume from an snapshot that was created via AMI. The idea is to create a new volume from snapshot and attach the volume as a root volume (/dev/sda1)on a test instance to check if instance is able to boot. If instance boots successfully then you can create a new AMI not sure if you have taken this approach but feel free to provide more detail or correct me if I missed something.

Based on the wording of your error I could assume that you are seeing:

InvalidAMIID.Unavailable -- The specified AMI has been deregistered and is no longer available, or is not in a state from which you can launch an instance or modify attributes [1]

This error means that you won't be able to launch new instance from the given AMI as it was de-registered, can read more on this topic here [3]. The docs also seem to state that "When you deregister an Amazon EBS-backed AMI, it doesn't affect the snapshot(s) that were created for the volume(s) of the instance during the AMI creation process." in practice your snapshots should still be available for use.

[1] Create a volume from a snapshot - https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-creating-volume.html#ebs-create-volume-from-snapshot

[2] Client error codes for specific actions - https://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html#api-error-codes-table-client

[3] Deregister your AMI - https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/deregister-ami.html

profile pictureAWS
支援工程師
Lundi
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南