Gublooo
Gublooo

Reputation: 2618

Terminating Amazon EC2 - what happens to persistant data

Its a pretty quick question - I have setup a pretty simple LAMP based website on EC2. I created an EBS and mounted it to the instance where I'm saving all the mysql data and other backups.

Now in order to connect to the instance - I use WINSCP and use the Elastic IP from where I can view all the data.

Now my question is - say I terminate the instance - the backup data and mysql data which resides on the EBS will still be available right. So how can I access this data.

I mean using WINSCP and the same Elastic IP, I wont be able to connect anymore as the instance is terminated - so how can access the data stored on EBS.

Sorry for the ignorant question but just starting to play with EC2 Thanks

Upvotes: 0

Views: 1135

Answers (1)

Eight-Bit Guru
Eight-Bit Guru

Reputation: 9961

I'm assuming you've created an EBS-backed instance and added to that (attached) a further EBS volume as a chunk of extra storage. In which case, when you terminate the instance, the boot EBS volume is released and deleted, but attached EBS storage is only released - it remains in the 'Available' state after the instance has been destroyed and its' data contents are left intact. You can then access whatever is on it by simply attaching it to another running instance.

Upvotes: 3

Related Questions