AMI Deletion and Add new AMI to existing EC2

0

With a human error if an AMI associated to an EC2 got deleted and unrecovered. Is it possible to add new AMI to existing EC2 which is running? Does this destroy the existing EC2 and do we have to create new EC2?

Chandra
질문됨 2년 전460회 조회
2개 답변
1

Hi,

Although it is not possible to associate a new AMI to a running instance, you don't have to worry about the running instance. When you deregister an AMI, it doesn't affect any instances that you've already launched from the AMI. The only thing is it can't be used to launch any new more instances.

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

If the deleted AMI has custom configurations, I would also recommend you create a new AMI form the already running instance so that you can launch new instances with those custom configurations in future.

profile pictureAWS
답변함 2년 전
0

Thank you for the response. "If the deleted AMI has custom configurations, I would also recommend you create a new AMI form the already running instance so that you can launch new instances with those custom configurations in future." This means the running EC2 instance(EC2-A) may not have an associated AMI (AMI-A) but we can create a custom AMI (AMI-B) from that running instance and that custom AMI(B) can be used to create a new EC2 (EC2-B) when the need arises/EC2-A got destroyed. That's good to know. Am I correct?

Chandra
답변함 2년 전

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

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

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

관련 콘텐츠