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

질문됨 일 년 전330회 조회
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
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠