Is secure to delete my AMIs and Snapshots?

0

Hello! I have 4 EC2 instances. 2 running and 2 stopped.

The stopped instances is t2 micro. But, some time ago, I must to migrate to t2 small. The way is to create an image from the instance and launch a new instance with this image, BUT, change the instance type.

It works fine. But I have 2 old AMIs.

  1. Can I delete these AMIs? I have afraid to delete these AMIs and delete the instance content too!

  2. I have 4 snapshots. Can I delete too? These snapshots is from the olds instances.

I know: I will not to delete the volumes. Only the AMIs and snapshots.

PS: Sorry my bad english. Greetings from Brazil!

질문됨 5년 전299회 조회
2개 답변
1

Hello,

Please be informed that you can directly change instance type without creating and AMI and launching another instance.
Change instance type: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-resize.html

Regarding AMI and snapshots, recommendation would be to keep the latest AMI and snapshot only. AMIs also create snapshot of the instance when the AMI is created. Moreover, latest AMI has all the latest data of the server from which it was created.

If the older snapshots are from different instances and you wish to keep data, please keep them all. If they are from the same instance, you can choose to keep only the latest snapshot.

AWS
nityans
답변함 5년 전
0

Hello

I would say, to be on the save side, make new snapshot and AMI from your new t2 small instance.

  1. You can delete the old AMIs. if you are afraid that these may contain some important data, create a new instance based on them and check. If there is data, export it and then delete the instance and amis

  2. same thing with snapshots. If you try to delete a snapshot that is being used, you will get an error message
    https://aws.amazon.com/premiumsupport/knowledge-center/snapshot-in-use-error/

hope this helps,
RT

rtt
답변함 5년 전

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

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

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

관련 콘텐츠